mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
move monero stuff after app constructor + cmdline parser
This commit is contained in:
parent
400c385a5c
commit
ffeecb6234
1 changed files with 6 additions and 5 deletions
11
main.cpp
11
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
|
||||
|
|
Loading…
Reference in a new issue