diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9c12b64..9dd77fe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -41,6 +41,13 @@ int main(int argc, char *argv[]) { // Browser app(argc, argv); + app.setApplicationName("smolbote"); +#ifdef GIT_VERSION + app.setApplicationVersion(GIT_VERSION); +#else + app.setApplicationVersion("1.0.0"); +#endif + if(app.isRunning()) { qDebug("Another instance is running, returning..."); return 0; @@ -86,7 +93,7 @@ int main(int argc, char *argv[]) app.setAttribute(Qt::AA_EnableHighDpiScaling); // Set configuration - app.setConfigPath(parser.value(configOption)); + app.loadSettings(parser.value(configOption)); // Load profiles app.loadProfiles(); |