Changeset View
Changeset View
Standalone View
Standalone View
src/apps/widget/main.cpp
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | 93 | #endif | |||
---|---|---|---|---|---|
112 | } | 112 | } | ||
113 | (void)Ruqola::self(); | 113 | (void)Ruqola::self(); | ||
114 | #if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS) | 114 | #if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS) | ||
115 | // Create systray to show notifications on Desktop | 115 | // Create systray to show notifications on Desktop | ||
116 | (void)Ruqola::self()->notification(); | 116 | (void)Ruqola::self()->notification(); | ||
117 | #endif | 117 | #endif | ||
118 | 118 | | |||
119 | if (!loadAccount.isEmpty()) { | 119 | if (!loadAccount.isEmpty()) { | ||
120 | Ruqola::self()->setCurrentAccount(loadAccount); | 120 | Ruqola::self()->setCurrentAccount(loadAccount, false /*showLastRoom*/); | ||
121 | } | 121 | } | ||
122 | KDBusService service(KDBusService::Unique); | 122 | KDBusService service(KDBusService::Unique); | ||
123 | 123 | | |||
124 | auto *mw = new RuqolaMainWindow(); | 124 | auto *mw = new RuqolaMainWindow(); | ||
125 | mw->show(); | 125 | mw->show(); | ||
126 | const int val = app.exec(); | 126 | const int val = app.exec(); | ||
127 | return val; | 127 | return val; | ||
128 | } | 128 | } |