diff options
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp index 814bfab8..a2031de4 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -14,6 +14,7 @@ #include "plugins/rplugininterface.hpp" #include "rekonqwindow.h" #include "settings/settings.hpp" +#include "settings/settingsdialog.h" #include <QDir> #include <QPluginLoader> #include <QStandardPaths> @@ -33,6 +34,14 @@ Application::Application(int &argc, char *argv[]) : SingleApplication(argc, argv spdlog::info("Loading rekonq configuration: {}", qUtf8Printable(settingsPath)); m_settings = new Settings(settingsPath, this); + if (m_settings->value("FirstRun", true).toBool()) { + spdlog::info("First run"); + if ((new SettingsDialog(m_settings, nullptr))->exec()) { + spdlog::info("new settings saved"); + m_settings->setValue("FirstRun", false); + } + } + // load default plugins for (const auto &location : QStandardPaths::standardLocations(QStandardPaths::AppLocalDataLocation)) { QDir dir(location + "/plugins"); |