There is a Debug window leftover in the system tray icon menu after #3392 merging.
This PR makes both the app menu and the systray icon menu consistent.
qt: Clean system tray icon menu for '-disablewallet' mode #14383
pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:20181003-disablewallet-systray changing 1 files +9 −7-
hebasto commented at 4:18 PM on October 3, 2018: member
-
in src/qt/bitcoingui.cpp:631 in 92135c918a outdated
626 | @@ -627,7 +627,10 @@ void BitcoinGUI::createTrayIconMenu() 627 | trayIconMenu->addAction(verifyMessageAction); 628 | trayIconMenu->addSeparator(); 629 | trayIconMenu->addAction(optionsAction); 630 | - trayIconMenu->addAction(openRPCConsoleAction); 631 | + if(walletFrame) 632 | + {
MarcoFalke commented at 9:52 PM on October 3, 2018:Don't forget to install
clang-formatand run the https://github.com/bitcoin/bitcoin/tree/master/contrib/devtools#clang-format-diffpy script to preempt whitespace nitpicking.
hebasto commented at 10:21 PM on October 3, 2018:Right. Done.
hebasto force-pushed on Oct 3, 2018fanquake added the label GUI on Oct 3, 2018DrahtBot commented at 5:30 AM on October 4, 2018: member<!--32850dd3fdea838b4049e64f46995ea2-->
Coverage Change (pull 14383) Reference (master) Lines -0.0132 % 87.0471 % Functions +0.0000 % 84.1130 % Branches -0.0104 % 51.5403 % in src/qt/bitcoingui.cpp:630 in 7a002b4122 outdated
626 | @@ -627,7 +627,9 @@ void BitcoinGUI::createTrayIconMenu() 627 | trayIconMenu->addAction(verifyMessageAction); 628 | trayIconMenu->addSeparator(); 629 | trayIconMenu->addAction(optionsAction); 630 | - trayIconMenu->addAction(openRPCConsoleAction); 631 | + if (walletFrame) {
promag commented at 11:28 PM on October 4, 2018:Why not
if (enableWallet) {?
Sjors commented at 4:05 AM on October 5, 2018:I would prefer
if (enableWallet)as well. UsingwalletFrameseems to be an older convention: https://github.com/bitcoin/bitcoin/commit/b7f4b6d35da7b63529a728eb9333fe424b2a5c6dpromag commented at 11:30 PM on October 4, 2018: memberTested ACK 7a002b4.
Sjors commented at 4:08 AM on October 5, 2018: memberBefore and after screenshots are very useful for this kind of change, especially for concept ACK's (let's see if BitcoinACKS falls for this.
Before: <img width="190" alt="before" src="https://user-images.githubusercontent.com/10217/46515868-55d34880-c8a1-11e8-9109-3404d7d687c9.png">
After: <img width="168" alt="after" src="https://user-images.githubusercontent.com/10217/46515870-5b309300-c8a1-11e8-9fe4-98ba550f60f4.png">
I'm confused: why would you remove the debug window menu item? It would make more sense to me to remove the Send, Receive and Sign Message items (and verify, even though in theory that shouldn't need a wallet).
hebasto commented at 10:40 PM on October 5, 2018: member@Sjors Thank you for your review.
I'm confused: why would you remove the debug window menu item?
In the node mode: https://github.com/bitcoin/bitcoin/blob/fa7e9694e1ed5406036620d4bf0b72a2aa984578/src/qt/bitcoingui.cpp#L114-L117
effectively disable this slot: https://github.com/bitcoin/bitcoin/blob/fa7e9694e1ed5406036620d4bf0b72a2aa984578/src/qt/bitcoingui.cpp#L662-L668
The
Debug windowmenu item is already removed from the main windowHelpmenu for the node mode: https://github.com/bitcoin/bitcoin/blob/fa7e9694e1ed5406036620d4bf0b72a2aa984578/src/qt/bitcoingui.cpp#L400-L403 and this PR aims to align the system tray icon menu with the main windowHelpmenu.36323e2ac6Clean systray icon menu for -disablewallet mode
Ref #3392
hebasto force-pushed on Oct 5, 2018hebasto renamed this:qt: Extend -disablewallet mode to system tray icon
qt: Clean system tray icon menu for '-disablewallet' mode
on Oct 6, 2018fanquake commented at 7:04 AM on October 9, 2018: membertACK 36323e2 Tested on macOS 10.14
master (1d14174):

master (1d14174) -disablewallet:

PR (36323e2):

PR (36323e2) -disablwallet:
MarcoFalke assigned jonasschnelli on Oct 9, 2018promag commented at 7:10 AM on October 9, 2018: memberutACK 36323e2.
Sjors commented at 2:54 AM on October 10, 2018: membertACK 36323e2
fanquake added this to the "Mergeable" column in a project
laanwj merged this on Oct 16, 2018laanwj closed this on Oct 16, 2018ken2812221 referenced this in commit 9bd3ff430b on Oct 16, 2018hebasto deleted the branch on Oct 16, 2018meshcollider removed this from the "Mergeable" column in a project
luke-jr referenced this in commit 6ffb8b9823 on Dec 24, 2018promag referenced this in commit d2ed162ce0 on Dec 30, 2018laanwj referenced this in commit 5ff7b372cd on Jan 3, 2019jonasschnelli referenced this in commit b265ffe323 on Oct 10, 2019sidhujag referenced this in commit 70b4e7317f on Oct 11, 2019deadalnix referenced this in commit 326b3c7453 on Oct 28, 2020ftrader referenced this in commit 401d66d279 on Apr 14, 2021linuxsh2 referenced this in commit 69af1687e6 on Jul 27, 2021linuxsh2 referenced this in commit 4867208023 on Jul 27, 2021linuxsh2 referenced this in commit 7558ef1311 on Jul 27, 2021linuxsh2 referenced this in commit 7c6728c9c6 on Jul 27, 2021linuxsh2 referenced this in commit daf7ed9eab on Jul 28, 2021linuxsh2 referenced this in commit 86f34ae43b on Jul 28, 2021linuxsh2 referenced this in commit 33f73e8f50 on Jul 28, 2021linuxsh2 referenced this in commit b8e420512e on Jul 30, 2021linuxsh2 referenced this in commit 0ccfb45431 on Jul 30, 2021Munkybooty referenced this in commit 42d4055ba3 on Aug 3, 2021Munkybooty referenced this in commit 1da9de31f6 on Aug 3, 2021DrahtBot locked this on Sep 8, 2021
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:15 UTC
More mirrored repositories can be found on mirror.b10c.me


