move monero stuff after app constructor + cmdline parser

This commit is contained in:
pazos 2018-04-25 15:29:17 +02:00
parent 400c385a5c
commit ffeecb6234

View file

@ -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