diff options
author | GChuf <gasper.cefarin@gmail.com> | 2019-08-27 18:14:51 +0200 |
---|---|---|
committer | GChuf <gasper.cefarin@gmail.com> | 2019-08-30 17:54:45 +0200 |
commit | f091dc818085c3fa478374ea4378a0c1dd3d87f2 (patch) | |
tree | fea6476234ab88f2923cce2ae757bcf4f7c23013 /src/qt/bitcoingui.cpp | |
parent | e47e36cb4975b332a4d9552bc73b031ab8fd6ab1 (diff) |
GUI: Remove unused menu items for Windows and Linux
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-rw-r--r-- | src/qt/bitcoingui.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 3533227483..4aa83b1c33 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -480,24 +480,16 @@ void BitcoinGUI::createMenuBar() connect(qApp, &QApplication::focusWindowChanged, [zoom_action] (QWindow* window) { zoom_action->setEnabled(window != nullptr); }); -#else - QAction* restore_action = window_menu->addAction(tr("Restore")); - connect(restore_action, &QAction::triggered, [] { - qApp->focusWindow()->showNormal(); - }); - - connect(qApp, &QApplication::focusWindowChanged, [restore_action] (QWindow* window) { - restore_action->setEnabled(window != nullptr); - }); #endif if (walletFrame) { +#ifdef Q_OS_MAC window_menu->addSeparator(); QAction* main_window_action = window_menu->addAction(tr("Main Window")); connect(main_window_action, &QAction::triggered, [this] { GUIUtil::bringToFront(this); }); - +#endif window_menu->addSeparator(); window_menu->addAction(usedSendingAddressesAction); window_menu->addAction(usedReceivingAddressesAction); |