qt: All tray menu actions call showNormalIfMinimized
This commit is contained in:
parent
6fc21aca6d
commit
0a656f85a9
1 changed files with 8 additions and 6 deletions
|
@ -269,17 +269,17 @@ void BitcoinGUI::createActions()
|
|||
#ifdef ENABLE_WALLET
|
||||
// These showNormalIfMinimized are needed because Send Coins and Receive Coins
|
||||
// can be triggered from the tray menu, and need to show the GUI to be useful.
|
||||
connect(overviewAction, &QAction::triggered, this, static_cast<void (BitcoinGUI::*)()>(&BitcoinGUI::showNormalIfMinimized));
|
||||
connect(overviewAction, &QAction::triggered, [this]{ showNormalIfMinimized(); });
|
||||
connect(overviewAction, &QAction::triggered, this, &BitcoinGUI::gotoOverviewPage);
|
||||
connect(sendCoinsAction, &QAction::triggered, this, static_cast<void (BitcoinGUI::*)()>(&BitcoinGUI::showNormalIfMinimized));
|
||||
connect(sendCoinsAction, &QAction::triggered, [this]{ showNormalIfMinimized(); });
|
||||
connect(sendCoinsAction, &QAction::triggered, [this]{ gotoSendCoinsPage(); });
|
||||
connect(sendCoinsMenuAction, &QAction::triggered, this, static_cast<void (BitcoinGUI::*)()>(&BitcoinGUI::showNormalIfMinimized));
|
||||
connect(sendCoinsMenuAction, &QAction::triggered, [this]{ showNormalIfMinimized(); });
|
||||
connect(sendCoinsMenuAction, &QAction::triggered, [this]{ gotoSendCoinsPage(); });
|
||||
connect(receiveCoinsAction, &QAction::triggered, this, static_cast<void (BitcoinGUI::*)()>(&BitcoinGUI::showNormalIfMinimized));
|
||||
connect(receiveCoinsAction, &QAction::triggered, [this]{ showNormalIfMinimized(); });
|
||||
connect(receiveCoinsAction, &QAction::triggered, this, &BitcoinGUI::gotoReceiveCoinsPage);
|
||||
connect(receiveCoinsMenuAction, &QAction::triggered, this, static_cast<void (BitcoinGUI::*)()>(&BitcoinGUI::showNormalIfMinimized));
|
||||
connect(receiveCoinsMenuAction, &QAction::triggered, [this]{ showNormalIfMinimized(); });
|
||||
connect(receiveCoinsMenuAction, &QAction::triggered, this, &BitcoinGUI::gotoReceiveCoinsPage);
|
||||
connect(historyAction, &QAction::triggered, this, static_cast<void (BitcoinGUI::*)()>(&BitcoinGUI::showNormalIfMinimized));
|
||||
connect(historyAction, &QAction::triggered, [this]{ showNormalIfMinimized(); });
|
||||
connect(historyAction, &QAction::triggered, this, &BitcoinGUI::gotoHistoryPage);
|
||||
#endif // ENABLE_WALLET
|
||||
|
||||
|
@ -346,7 +346,9 @@ void BitcoinGUI::createActions()
|
|||
connect(encryptWalletAction, &QAction::triggered, walletFrame, &WalletFrame::encryptWallet);
|
||||
connect(backupWalletAction, &QAction::triggered, walletFrame, &WalletFrame::backupWallet);
|
||||
connect(changePassphraseAction, &QAction::triggered, walletFrame, &WalletFrame::changePassphrase);
|
||||
connect(signMessageAction, &QAction::triggered, [this]{ showNormalIfMinimized(); });
|
||||
connect(signMessageAction, &QAction::triggered, [this]{ gotoSignMessageTab(); });
|
||||
connect(verifyMessageAction, &QAction::triggered, [this]{ showNormalIfMinimized(); });
|
||||
connect(verifyMessageAction, &QAction::triggered, [this]{ gotoVerifyMessageTab(); });
|
||||
connect(usedSendingAddressesAction, &QAction::triggered, walletFrame, &WalletFrame::usedSendingAddresses);
|
||||
connect(usedReceivingAddressesAction, &QAction::triggered, walletFrame, &WalletFrame::usedReceivingAddresses);
|
||||
|
|
Loading…
Reference in a new issue