Display new acc dialog when launched with no existing accs.
This commit is contained in:
parent
1e85c26961
commit
53e08f6368
@ -19,6 +19,7 @@
|
||||
#include "core/feedsmodel.h"
|
||||
|
||||
#include "definitions/definitions.h"
|
||||
#include "gui/dialogs/formmain.h"
|
||||
#include "miscellaneous/databasefactory.h"
|
||||
#include "miscellaneous/feedreader.h"
|
||||
#include "miscellaneous/iconfactory.h"
|
||||
@ -539,8 +540,8 @@ void FeedsModel::loadActivatedServiceAccounts() {
|
||||
}
|
||||
|
||||
if (serviceRoots().isEmpty()) {
|
||||
QTimer::singleShot(2000, [this]() {
|
||||
addServiceAccount(StandardServiceEntryPoint().createNewRoot(), true);
|
||||
QTimer::singleShot(3000, [this]() {
|
||||
qApp->mainForm()->showAddAccountDialog();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -67,6 +67,8 @@ class FormMain : public QMainWindow {
|
||||
// Turns on/off fullscreen mode
|
||||
void switchFullscreenMode();
|
||||
|
||||
void showAddAccountDialog();
|
||||
|
||||
private slots:
|
||||
void updateAddItemMenu();
|
||||
void updateRecycleBinMenu();
|
||||
@ -83,7 +85,6 @@ class FormMain : public QMainWindow {
|
||||
void backupDatabaseSettings();
|
||||
void restoreDatabaseSettings();
|
||||
void showWiki();
|
||||
void showAddAccountDialog();
|
||||
void showDbCleanupAssistant();
|
||||
void reportABug();
|
||||
void donate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user