File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,14 @@ int main(int argc, char** argv) {
20
20
21
21
QApplication app (argc, argv);
22
22
23
+ QCoreApplication::setOrganizationName (ORGANIZATION_NAME.data ());
24
+ QCoreApplication::setApplicationName (PROJECT_NAME.data ());
25
+ QCoreApplication::setApplicationVersion (PROJECT_VERSION.data ());
26
+
27
+ #if !defined(__APPLE__) && !defined(_WIN32)
28
+ QGuiApplication::setDesktopFileName (PROJECT_NAME.data ());
29
+ #endif
30
+
23
31
std::unique_ptr<QSettings> options;
24
32
if (Options::isStandalone ()) {
25
33
auto configPath = QApplication::applicationDirPath () + " /config.ini" ;
@@ -36,14 +44,6 @@ int main(int argc, char** argv) {
36
44
QCoreApplication::installTranslator (&translator);
37
45
}
38
46
39
- QCoreApplication::setOrganizationName (ORGANIZATION_NAME.data ());
40
- QCoreApplication::setApplicationName (PROJECT_NAME.data ());
41
- QCoreApplication::setApplicationVersion (PROJECT_VERSION.data ());
42
-
43
- #if !defined(__APPLE__) && !defined(_WIN32)
44
- QGuiApplication::setDesktopFileName (PROJECT_NAME.data ());
45
- #endif
46
-
47
47
auto * window = new Window ();
48
48
if (!Options::get<bool >(OPT_START_MAXIMIZED)) {
49
49
window->show ();
You can’t perform that action at this time.
0 commit comments