Clean systray icon menu for -disablewallet mode

Ref #3392
This commit is contained in:
Hennadii Stepanov 2018-10-03 19:06:12 +03:00
parent 4b4e9486af
commit 36323e2ac6
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -620,14 +620,16 @@ void BitcoinGUI::createTrayIconMenu()
trayIconMenu->addAction(toggleHideAction); trayIconMenu->addAction(toggleHideAction);
trayIconMenu->addSeparator(); trayIconMenu->addSeparator();
#endif #endif
trayIconMenu->addAction(sendCoinsMenuAction); if (enableWallet) {
trayIconMenu->addAction(receiveCoinsMenuAction); trayIconMenu->addAction(sendCoinsMenuAction);
trayIconMenu->addSeparator(); trayIconMenu->addAction(receiveCoinsMenuAction);
trayIconMenu->addAction(signMessageAction); trayIconMenu->addSeparator();
trayIconMenu->addAction(verifyMessageAction); trayIconMenu->addAction(signMessageAction);
trayIconMenu->addSeparator(); trayIconMenu->addAction(verifyMessageAction);
trayIconMenu->addSeparator();
trayIconMenu->addAction(openRPCConsoleAction);
}
trayIconMenu->addAction(optionsAction); trayIconMenu->addAction(optionsAction);
trayIconMenu->addAction(openRPCConsoleAction);
#ifndef Q_OS_MAC // This is built-in on Mac #ifndef Q_OS_MAC // This is built-in on Mac
trayIconMenu->addSeparator(); trayIconMenu->addSeparator();
trayIconMenu->addAction(quitAction); trayIconMenu->addAction(quitAction);