mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 13:43:43 +01:00
gui: Add shortcuts for tab tools
This commit is contained in:
@@ -493,6 +493,7 @@ void BitcoinGUI::createMenuBar()
|
||||
window_menu->addSeparator();
|
||||
for (RPCConsole::TabTypes tab_type : rpcConsole->tabs()) {
|
||||
QAction* tab_action = window_menu->addAction(rpcConsole->tabTitle(tab_type));
|
||||
tab_action->setShortcut(rpcConsole->tabShortcut(tab_type));
|
||||
connect(tab_action, &QAction::triggered, [this, tab_type] {
|
||||
rpcConsole->setTabFocus(tab_type);
|
||||
showDebugWindow();
|
||||
|
||||
Reference in New Issue
Block a user