Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented Oct 3, 2018

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. Done.

@hebasto hebasto force-pushed the 20181003-disablewallet-systray branch from 92135c9 to 7a002b4 Compare October 3, 2018 22:13
@fanquake fanquake added the GUI label Oct 3, 2018
@DrahtBot
Copy link
Contributor

DrahtBot commented Oct 4, 2018

Coverage Change (pull 14383) Reference (master)
Lines -0.0132 % 87.0471 %
Functions +0.0000 % 84.1130 %
Branches -0.0104 % 51.5403 %

Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK 7a002b4.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not if (enableWallet) {?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if (enableWallet) as well. Using walletFrame seems to be an older convention: b7f4b6d

Copy link
Member

@Sjors Sjors left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before 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:
before

After:
after

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).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if (enableWallet) as well. Using walletFrame seems to be an older convention: b7f4b6d

@hebasto
Copy link
Member Author

hebasto commented Oct 5, 2018

@Sjors
Thank you for your review.

I'm confused: why would you remove the debug window menu item?

In the node mode:

/* When compiled without wallet or -disablewallet is provided,
* the central widget is the rpc console.
*/
setCentralWidget(rpcConsole);

and

connect(openRPCConsoleAction, &QAction::triggered, this, &BitcoinGUI::showDebugWindow);

effectively disable this slot:

void BitcoinGUI::showDebugWindow()
{
rpcConsole->showNormal();
rpcConsole->show();
rpcConsole->raise();
rpcConsole->activateWindow();
}

The Debug window menu item is already removed from the main window Help menu for the node mode:

if(walletFrame)
{
help->addAction(openRPCConsoleAction);
}

and this PR aims to align the system tray icon menu with the main window Help menu.

@hebasto hebasto force-pushed the 20181003-disablewallet-systray branch from 7a002b4 to 36323e2 Compare October 5, 2018 23:55
@hebasto
Copy link
Member Author

hebasto commented Oct 6, 2018

All thoughts above are implemented.

Master [wallet mode]
tray_wallet_before

This PR [wallet mode]
tray_wallet_after2

Master [node mode]
tray_node_before

This PR [node mode]
tray_node_after2

@promag @Sjors please re-review and test on macos.

@hebasto hebasto changed the title qt: Extend -disablewallet mode to system tray icon qt: Clean system tray icon menu for '-disablewallet' mode Oct 6, 2018
@fanquake
Copy link
Member

fanquake commented Oct 9, 2018

tACK 36323e2
Tested on macOS 10.14

master (1d14174):
master

master (1d14174) -disablewallet:
master -disablewallet

PR (36323e2):
pr

PR (36323e2) -disablwallet:
pr - disablewallet

@promag
Copy link
Contributor

promag commented Oct 9, 2018

utACK 36323e2.

@Sjors
Copy link
Member

Sjors commented Oct 10, 2018

tACK 36323e2

@laanwj laanwj merged commit 36323e2 into bitcoin:master Oct 16, 2018
@hebasto hebasto deleted the 20181003-disablewallet-systray branch October 16, 2018 05:01
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Dec 24, 2018
promag pushed a commit to promag/bitcoin that referenced this pull request Dec 30, 2018
laanwj added a commit that referenced this pull request Jan 3, 2019
27beb83 qt: All tray menu actions call showNormalIfMinimized (João Barbosa)
c470bbd qt: Use GUIUtil::bringToFront where possible (João Barbosa)
ac73c7d qt: Add GUIUtil::bringToFront (João Barbosa)
0c2fb87 Remove obj_c for macOS Dock icon menu (Hennadii Stepanov)
9034714 Use Qt signal for macOS Dock icon click event (Hennadii Stepanov)
4d4bc37 Remove obj_c for macOS Dock icon setting (Hennadii Stepanov)
d2ed162 Clean systray icon menu for -disablewallet mode (Hennadii Stepanov)
298dc15 gui: Favor macOS show / hide action in dock menu (João Barbosa)

Pull request description:

  Backport #14123 #14133 #14383 and #14597 to 0.17 branch to fix #13606 (comment).

Tree-SHA512: 543c80e7e2130870e801e0c9a69b06b9eea27c288478fc5dddeb662f7f3ec5b56b30916e5a9a629fced3fffcb8be77e2cd155e75cfd0a4392299add9730840f4
jonasschnelli added a commit that referenced this pull request Oct 10, 2019
f33efa8 GUI: Restore RPC Console to non-wallet tray icon menu (Luke Dashjr)

Pull request description:

  #14383 moved the debug window's menu position, to make it conditional on wallet mode. The rationale given was to match the behaviour of the 'Help' menu.

  #14573 replaced the 'Help' menu's conditional debug window with an unconditional list of items in the new 'Window' menu.

  This PR reverts the no-longer-applicable part of #14383, putting the debug window back on the tray menu unconditionally, and in the position it previously had.

ACKs for top commit:
  jonasschnelli:
    Tested ACK f33efa8 - the debug window is also accessible from the menu (though directly the subpages which counts IMO).

Tree-SHA512: c04a588fed37a8c31cb413baaa346e3c1c18724f9b40d64b8528c517f65290930d577bccf0a794180e968e84d3c52e9fa3fdc8a40bbc5fe3418eaddd73481271
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Oct 11, 2019
… menu

f33efa8 GUI: Restore RPC Console to non-wallet tray icon menu (Luke Dashjr)

Pull request description:

  bitcoin#14383 moved the debug window's menu position, to make it conditional on wallet mode. The rationale given was to match the behaviour of the 'Help' menu.

  bitcoin#14573 replaced the 'Help' menu's conditional debug window with an unconditional list of items in the new 'Window' menu.

  This PR reverts the no-longer-applicable part of bitcoin#14383, putting the debug window back on the tray menu unconditionally, and in the position it previously had.

ACKs for top commit:
  jonasschnelli:
    Tested ACK f33efa8 - the debug window is also accessible from the menu (though directly the subpages which counts IMO).

Tree-SHA512: c04a588fed37a8c31cb413baaa346e3c1c18724f9b40d64b8528c517f65290930d577bccf0a794180e968e84d3c52e9fa3fdc8a40bbc5fe3418eaddd73481271
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Oct 28, 2020
Summary:

This is a backport of Core [[bitcoin/bitcoin#14383 | PR14383]] and  [[bitcoin/bitcoin#15023 | PR15023]]

PR 14383 description:
> There is a Debug window leftover in the system tray icon menu after [[bitcoin/bitcoin#3392 | PR3392]] merging.
> This PR makes both the app menu and the systray icon menu consistent.

PR15023 description:
> [[bitcoin/bitcoin#14383 | PR14383]] moved the debug window's menu position, to make it conditional on wallet mode. The rationale given was to match the behaviour of the 'Help' menu.
>
> [[bitcoin/bitcoin#14573 | PR14573]] replaced the 'Help' menu's conditional debug window with an unconditional list of items in the new 'Window' menu.
>
> This PR reverts the no-longer-applicable part of #14383, putting the debug window back on the tray menu unconditionally, and in the position it previously had.

Note: PR14573 was backported in D7892

Test Plan: `ninja && src/qt/bitcoin-qt  -disablewallet`

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Subscribers: deadalnix, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D8146
ftrader pushed a commit to bitcoin-cash-node/bitcoin-cash-node that referenced this pull request Apr 14, 2021
Summary:

This is a backport of Core [[bitcoin/bitcoin#14383 | PR14383]] and  [[bitcoin/bitcoin#15023 | PR15023]]

PR 14383 description:
> There is a Debug window leftover in the system tray icon menu after [[bitcoin/bitcoin#3392 | PR3392]] merging.
> This PR makes both the app menu and the systray icon menu consistent.

PR15023 description:
> [[bitcoin/bitcoin#14383 | PR14383]] moved the debug window's menu position, to make it conditional on wallet mode. The rationale given was to match the behaviour of the 'Help' menu.
>
> [[bitcoin/bitcoin#14573 | PR14573]] replaced the 'Help' menu's conditional debug window with an unconditional list of items in the new 'Window' menu.
>
> This PR reverts the no-longer-applicable part of #14383, putting the debug window back on the tray menu unconditionally, and in the position it previously had.

Note: PR14573 was backported in D7892

Test Plan: `ninja && src/qt/bitcoin-qt  -disablewallet`

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Subscribers: deadalnix, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D8146
linuxsh2 pushed a commit to linuxsh2/dash that referenced this pull request Jul 28, 2021
…let' mode

36323e2 Clean systray icon menu for -disablewallet mode (Hennadii Stepanov)

Pull request description:

  There is a `Debug window` leftover in the system tray icon menu after dashpay#3392 merging.
  This PR makes both the app menu and the systray icon menu consistent.

Tree-SHA512: c9ef58785fe2a54bc6f778140a16001748ed8c46da948656822b86fdc2e224203cd467857f71d00ce56fc73ff2590c46d8c234a54c261c1141d83039de6fee1e
linuxsh2 pushed a commit to linuxsh2/dash that referenced this pull request Jul 30, 2021
…let' mode

36323e2 Clean systray icon menu for -disablewallet mode (Hennadii Stepanov)

Pull request description:

  There is a `Debug window` leftover in the system tray icon menu after dashpay#3392 merging.
  This PR makes both the app menu and the systray icon menu consistent.

Tree-SHA512: c9ef58785fe2a54bc6f778140a16001748ed8c46da948656822b86fdc2e224203cd467857f71d00ce56fc73ff2590c46d8c234a54c261c1141d83039de6fee1e
linuxsh2 pushed a commit to linuxsh2/dash that referenced this pull request Jul 30, 2021
… menu

f33efa8 GUI: Restore RPC Console to non-wallet tray icon menu (Luke Dashjr)

Pull request description:

  bitcoin#14383 moved the debug window's menu position, to make it conditional on wallet mode. The rationale given was to match the behaviour of the 'Help' menu.

  bitcoin#14573 replaced the 'Help' menu's conditional debug window with an unconditional list of items in the new 'Window' menu.

  This PR reverts the no-longer-applicable part of bitcoin#14383, putting the debug window back on the tray menu unconditionally, and in the position it previously had.

ACKs for top commit:
  jonasschnelli:
    Tested ACK f33efa8 - the debug window is also accessible from the menu (though directly the subpages which counts IMO).

Tree-SHA512: c04a588fed37a8c31cb413baaa346e3c1c18724f9b40d64b8528c517f65290930d577bccf0a794180e968e84d3c52e9fa3fdc8a40bbc5fe3418eaddd73481271
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants