mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
Merge #14133: gui: Favor macOS show / hide action in dock menu
ee3a494f37
gui: Favor macOS show / hide action in dock menu (João Barbosa)
Pull request description:
Before:
<img width="188" alt="screen shot 2018-09-02 at 19 10 02" src="https://user-images.githubusercontent.com/3534524/44959393-5a44c400-aee5-11e8-90f4-9a30f67f7ee2.png">
After:
<img width="200" alt="screen shot 2018-09-02 at 19 19 01" src="https://user-images.githubusercontent.com/3534524/44959395-60d33b80-aee5-11e8-9773-1d04d3482115.png">
Note that macOS toggles between `Hide` and `Show`.
Tree-SHA512: e616fabc5a4689355d924cb99ce33c0d4c6618e858002cef7521dc4783346ff882341cf8d7f667d7fb920a8337373eff37169cddc2da93e48f7710e5c41d0b93
This commit is contained in:
commit
bdfeb5dfa8
1 changed files with 3 additions and 0 deletions
|
@ -614,8 +614,11 @@ void BitcoinGUI::createTrayIconMenu()
|
|||
#endif
|
||||
|
||||
// Configuration of the tray icon (or dock icon) icon menu
|
||||
#ifndef Q_OS_MAC
|
||||
// Note: On Mac, the dock icon's menu already has show / hide action.
|
||||
trayIconMenu->addAction(toggleHideAction);
|
||||
trayIconMenu->addSeparator();
|
||||
#endif
|
||||
trayIconMenu->addAction(sendCoinsMenuAction);
|
||||
trayIconMenu->addAction(receiveCoinsMenuAction);
|
||||
trayIconMenu->addSeparator();
|
||||
|
|
Loading…
Add table
Reference in a new issue