diff --git a/main.cpp b/main.cpp index 3f656042..cb55ab29 100644 --- a/main.cpp +++ b/main.cpp @@ -93,17 +93,12 @@ int main(int argc, char *argv[]) // disable "QApplication: invalid style override passed" warning if (isDesktop) putenv((char*)"QT_STYLE_OVERRIDE=fusion"); - Monero::Utils::onStartup(); // // Enable high DPI scaling on windows & linux //#if !defined(Q_OS_ANDROID) && QT_VERSION >= 0x050600 // QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // qDebug() << "High DPI auto scaling - enabled"; //#endif - // Log settings - Monero::Wallet::init(argv[0], "monero-wallet-gui"); -// qInstallMessageHandler(messageHandler); - MainApp app(argc, argv); app.setApplicationName("monero-gui"); @@ -121,6 +116,12 @@ int main(int argc, char *argv[]) parser.addHelpOption(); parser.process(app); + Monero::Utils::onStartup(); + + // Log settings + Monero::Wallet::init(argv[0], "monero-wallet-gui"); +// qInstallMessageHandler(messageHandler); + qDebug() << "app startd"; // registering types for QML