mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 05:34:57 +01:00
GUI: Remove unused menu items for Windows and Linux
This commit is contained in:
@@ -480,24 +480,16 @@ void BitcoinGUI::createMenuBar()
|
|||||||
connect(qApp, &QApplication::focusWindowChanged, [zoom_action] (QWindow* window) {
|
connect(qApp, &QApplication::focusWindowChanged, [zoom_action] (QWindow* window) {
|
||||||
zoom_action->setEnabled(window != nullptr);
|
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
|
#endif
|
||||||
|
|
||||||
if (walletFrame) {
|
if (walletFrame) {
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
window_menu->addSeparator();
|
window_menu->addSeparator();
|
||||||
QAction* main_window_action = window_menu->addAction(tr("Main Window"));
|
QAction* main_window_action = window_menu->addAction(tr("Main Window"));
|
||||||
connect(main_window_action, &QAction::triggered, [this] {
|
connect(main_window_action, &QAction::triggered, [this] {
|
||||||
GUIUtil::bringToFront(this);
|
GUIUtil::bringToFront(this);
|
||||||
});
|
});
|
||||||
|
#endif
|
||||||
window_menu->addSeparator();
|
window_menu->addSeparator();
|
||||||
window_menu->addAction(usedSendingAddressesAction);
|
window_menu->addAction(usedSendingAddressesAction);
|
||||||
window_menu->addAction(usedReceivingAddressesAction);
|
window_menu->addAction(usedReceivingAddressesAction);
|
||||||
|
|||||||
Reference in New Issue
Block a user