mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 03:42:05 +02:00
move monero stuff after app constructor + cmdline parser
This commit is contained in:
parent
400c385a5c
commit
ffeecb6234
11
main.cpp
11
main.cpp
@ -93,17 +93,12 @@ int main(int argc, char *argv[])
|
|||||||
// disable "QApplication: invalid style override passed" warning
|
// disable "QApplication: invalid style override passed" warning
|
||||||
if (isDesktop) putenv((char*)"QT_STYLE_OVERRIDE=fusion");
|
if (isDesktop) putenv((char*)"QT_STYLE_OVERRIDE=fusion");
|
||||||
|
|
||||||
Monero::Utils::onStartup();
|
|
||||||
// // Enable high DPI scaling on windows & linux
|
// // Enable high DPI scaling on windows & linux
|
||||||
//#if !defined(Q_OS_ANDROID) && QT_VERSION >= 0x050600
|
//#if !defined(Q_OS_ANDROID) && QT_VERSION >= 0x050600
|
||||||
// QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
// QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
// qDebug() << "High DPI auto scaling - enabled";
|
// qDebug() << "High DPI auto scaling - enabled";
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
// Log settings
|
|
||||||
Monero::Wallet::init(argv[0], "monero-wallet-gui");
|
|
||||||
// qInstallMessageHandler(messageHandler);
|
|
||||||
|
|
||||||
MainApp app(argc, argv);
|
MainApp app(argc, argv);
|
||||||
|
|
||||||
app.setApplicationName("monero-gui");
|
app.setApplicationName("monero-gui");
|
||||||
@ -121,6 +116,12 @@ int main(int argc, char *argv[])
|
|||||||
parser.addHelpOption();
|
parser.addHelpOption();
|
||||||
parser.process(app);
|
parser.process(app);
|
||||||
|
|
||||||
|
Monero::Utils::onStartup();
|
||||||
|
|
||||||
|
// Log settings
|
||||||
|
Monero::Wallet::init(argv[0], "monero-wallet-gui");
|
||||||
|
// qInstallMessageHandler(messageHandler);
|
||||||
|
|
||||||
qDebug() << "app startd";
|
qDebug() << "app startd";
|
||||||
|
|
||||||
// registering types for QML
|
// registering types for QML
|
||||||
|
Loading…
Reference in New Issue
Block a user