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 "core/feedsmodel.h"
|
||||||
|
|
||||||
#include "definitions/definitions.h"
|
#include "definitions/definitions.h"
|
||||||
|
#include "gui/dialogs/formmain.h"
|
||||||
#include "miscellaneous/databasefactory.h"
|
#include "miscellaneous/databasefactory.h"
|
||||||
#include "miscellaneous/feedreader.h"
|
#include "miscellaneous/feedreader.h"
|
||||||
#include "miscellaneous/iconfactory.h"
|
#include "miscellaneous/iconfactory.h"
|
||||||
@ -539,8 +540,8 @@ void FeedsModel::loadActivatedServiceAccounts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (serviceRoots().isEmpty()) {
|
if (serviceRoots().isEmpty()) {
|
||||||
QTimer::singleShot(2000, [this]() {
|
QTimer::singleShot(3000, [this]() {
|
||||||
addServiceAccount(StandardServiceEntryPoint().createNewRoot(), true);
|
qApp->mainForm()->showAddAccountDialog();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,6 +67,8 @@ class FormMain : public QMainWindow {
|
|||||||
// Turns on/off fullscreen mode
|
// Turns on/off fullscreen mode
|
||||||
void switchFullscreenMode();
|
void switchFullscreenMode();
|
||||||
|
|
||||||
|
void showAddAccountDialog();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void updateAddItemMenu();
|
void updateAddItemMenu();
|
||||||
void updateRecycleBinMenu();
|
void updateRecycleBinMenu();
|
||||||
@ -83,7 +85,6 @@ class FormMain : public QMainWindow {
|
|||||||
void backupDatabaseSettings();
|
void backupDatabaseSettings();
|
||||||
void restoreDatabaseSettings();
|
void restoreDatabaseSettings();
|
||||||
void showWiki();
|
void showWiki();
|
||||||
void showAddAccountDialog();
|
|
||||||
void showDbCleanupAssistant();
|
void showDbCleanupAssistant();
|
||||||
void reportABug();
|
void reportABug();
|
||||||
void donate();
|
void donate();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user