Removed "Main Window" and "Restore" menu option for Windows and linux Keep the options for macOS
gui: Remove unused menu items for Windows and Linux #16735
pull GChuf wants to merge 1 commits into bitcoin:master from GChuf:menu-items changing 1 files +2 −10-
GChuf commented at 5:53 PM on August 27, 2019: contributor
-
GChuf commented at 5:55 PM on August 27, 2019: contributor
This was already mentioned by @molxyz (at least for "Main Window") in #14573.
I'm not entirely sure what's up with "Restore", but for me on Windows and Linux, when I click it, I only get this shadow of the menu around. I also tried adding a shortcut to see if it would do something different (whether minimized or not), but it behaved the same. Not sure what it does on macOS.

Before and after for linux (and windows):

p.s. this does not touch entries on macOS and keeps everything else behaving just as it did before.
if macOS: add "Zoom" entry if wallet enabled, add "Main Window", "SendingAddresses", "ReceivingAddress" entries else: if wallet enabled, add "SendingAddresses", "ReceivingAddress" entries -
MarcoFalke commented at 6:09 PM on August 27, 2019: member
Concept ACK
-
hebasto commented at 7:26 PM on August 27, 2019: member
Concept ACK
- DrahtBot added the label GUI on Aug 27, 2019
-
emilengler commented at 8:21 PM on August 27, 2019: contributor
Concept ACK
-
promag commented at 1:32 AM on August 28, 2019: member
I made this request several times but for some reason it seemed to go into deaf ears.
Sorry but does #14573 (comment) means several?
Concept ACK.
Maybe also drop
Minimizein windows? IIRC the context menu of the window icon has that option? -
promag commented at 1:37 AM on August 28, 2019: member
I'm not entirely sure what's up with "Restore", but for me on Windows and Linux, when I click it, I only get this shadow of the menu around
That sounds like a Qt bug? Which one are you using?
Not sure what it does on macOS.
In macos there's the "Zoom" menu item, it toggle between maximized and normal.
- fanquake renamed this:
GUI: Remove unused menu items for Windows and Linux
gui: Remove unused menu items for Windows and Linux
on Aug 28, 2019 -
in src/qt/bitcoingui.cpp:496 in 2483dcc496 outdated
491 | @@ -502,6 +492,13 @@ void BitcoinGUI::createMenuBar() 492 | window_menu->addAction(usedSendingAddressesAction); 493 | window_menu->addAction(usedReceivingAddressesAction); 494 | } 495 | +#else 496 | + if (walletFrame) {
hebasto commented at 8:57 AM on August 28, 2019:Could code duplication be avoided?
GChuf commented at 1:12 PM on August 28, 2019:I dont see any nice, clean way if we want to keep current behavior. Not duplicating sending/receiving addresses would require duplicating check for macos.
GChuf commented at 1:29 PM on August 28, 2019:That said, it would save us a few symbols, though not any lines...
GChuf commented at 2:22 PM on August 28, 2019:... I take it back, I was thinking about this when I was away from my computer. Looks like I managed to decrease the line count by 5 by doing what I had in mind. Thanks for the idea.
GChuf commented at 2:02 PM on August 28, 2019: contributor@promag I wouldnt like to drop minimize on windows (and/or linux), it can still act as a nice shortcut (ctrl + m). Even if the shortcut is there, menu entry needs to be as well for people to see the shortcut exists.
Supposedly, windows equivalent of Zoom is Magnify, I don't think people use it much, if at all.
Using qt 5.5.1, and i'm pretty sure older versions behaved the same.
MarcoFalke added the label Needs gitian build on Aug 28, 2019DrahtBot removed the label Needs gitian build on Aug 29, 2019molxyz commented at 10:47 AM on August 30, 2019: noneSorry but does #14573 (comment) means several? @promag Excuse me? You think I would lie on this GH repo? Here are the requests I made for this same issue: #15555 (comment) #14573 (comment) #16386 (comment)
That means "several" in English AFAIK. I probably should have made a separate new issue on its own now I think of it, but I gave up.
And I wasn't the only one, Meshcollider also made the same request to you before I saw this useless button on my wallet. #14573 (comment)
Your remark to me is inappropriate, i'm not upset but please don't create things on GUI that don't have any use or purpose, that's all I'm asking for. Thank you.
promag commented at 11:10 AM on August 30, 2019: member@molxyz I had no intention in being inappropriate, just genuinely curious which were those several requests, because I was only aware of that one.
it seemed to go into deaf ears. Hopefully this time someone will listen to you.
I did reply to you and @meshcollider and explained that it was too late to change for 0.18.
but please don't create things on GUI that don't have any use or purpose
Yeah I don't want either :trollface: and you are also free to submit changes like I am.
Anyway, I already agreed to this change: #16735 (comment) so lets get this done for 0.19.
in src/qt/bitcoingui.cpp:487 in b448fb152f outdated
497 | - connect(main_window_action, &QAction::triggered, [this] { 498 | - GUIUtil::bringToFront(this); 499 | - }); 500 | - 501 | +#ifdef Q_OS_MAC 502 | + window_menu->addSeparator();
promag commented at 11:16 AM on August 30, 2019:Fix (restore) indentation please.
Note that test/lint/lint-whitespace.sh is failing:
This diff appears to have added new lines with tab characters instead of spaces.
GChuf commented at 2:54 PM on August 30, 2019:Thanks, didn't notice the indentation mistake. The tab was after #ifdef Q_OS_MAC and I found it almost by mistake. Should be good now.
GChuf commented at 2:56 PM on August 30, 2019:p.s. is the indentation for #ifdef Q_OS_MAC okay, or should i indent that as well?
GUI: Remove unused menu items for Windows and Linux f091dc8180kristapsk approvedkristapsk commented at 8:37 PM on August 30, 2019: contributorACK f091dc818085c3fa478374ea4378a0c1dd3d87f2 (tested on Linux with Xfce4)
GChuf commented at 1:41 PM on September 2, 2019: contributorTested gitian builds additionally on Windows 10 (1709) and Ubuntu 16.04.1, working as expected.
MarcoFalke deleted a comment on Sep 6, 2019MarcoFalke added the label Needs gitian build on Sep 6, 2019MarcoFalke commented at 2:12 PM on September 6, 2019: memberunsigned ACK f091dc818085c3fa478374ea4378a0c1dd3d87f2
MarcoFalke added this to the milestone 0.19.0 on Sep 6, 2019DrahtBot commented at 3:57 AM on September 7, 2019: member<!--a722867cd34abeea1fadc8d60700f111-->
Gitian builds for commit 5e202382a987351a59d5cda98ea9f2aee99f61a5 (master):
db7528c50896fbc44e13e5bdbb9e0238...bitcoin-0.18.99-aarch64-linux-gnu-debug.tar.gza03660483ed3f38f0d36766750a9280f...bitcoin-0.18.99-aarch64-linux-gnu.tar.gz3cd3ac539ad7fe2443de34453fddae4c...bitcoin-0.18.99-arm-linux-gnueabihf-debug.tar.gz700cb8e369579d5618823767e1a80646...bitcoin-0.18.99-arm-linux-gnueabihf.tar.gz9e463f0ac101fbbf7fb962d721e62483...bitcoin-0.18.99-i686-pc-linux-gnu-debug.tar.gz4dd954effa4cb40cbd07e52fd1f372b1...bitcoin-0.18.99-i686-pc-linux-gnu.tar.gz542489150d8745cfe924211237de7a3b...bitcoin-0.18.99-osx-unsigned.dmg98c97aa2af9dccaa665ed1074764f2ee...bitcoin-0.18.99-osx64.tar.gz659672dc3cf4ac7e54fe38ccbb323aea...bitcoin-0.18.99-riscv64-linux-gnu-debug.tar.gz6072df0b61c6e043b069e5c11ee3edeb...bitcoin-0.18.99-riscv64-linux-gnu.tar.gz32b91937b0c3e432ed992bfcf7ace5fd...bitcoin-0.18.99-win64-debug.zip12f848beb0c902d24f50e2dd59c129de...bitcoin-0.18.99-win64-setup-unsigned.exed53cac1b3017bb96bbd3222deb692920...bitcoin-0.18.99-win64.zipb6486b438b75c3219d1c800d2c96a47f...bitcoin-0.18.99-x86_64-linux-gnu-debug.tar.gzcba2de75c02da6a2421514ccbc003f94...bitcoin-0.18.99-x86_64-linux-gnu.tar.gz586e30720ea5eb8d041d959d1c9b1f6d...bitcoin-0.18.99.tar.gz99aa33d388fb5e03e0616ebc9c56ea85...bitcoin-core-linux-0.19-res.ymledc5d01e4ae0c579112c34948938d466...bitcoin-core-osx-0.19-res.yml3c9d5c92140315b84e728e8a48e7e767...bitcoin-core-win-0.19-res.ymlb83614b692a6a26f9418144af4cc3095...linux-build.log6b215962eaff1c9730f46265df4b0aac...osx-build.logeabfe80f5b20efd06c8dacac4c7309f8...win-build.log
Gitian builds for commit 21ede319ab654e0a8ac2300588d703ab77a29e8b (master and this pull):
32d9ae065b4c85d67eebf7a7c6ad653f...bitcoin-0.18.99-aarch64-linux-gnu-debug.tar.gz296ef379193687d4466e01f1a21ba35f...bitcoin-0.18.99-aarch64-linux-gnu.tar.gz257df8d531a34a802cc0a7f139398868...bitcoin-0.18.99-arm-linux-gnueabihf-debug.tar.gz99102e63fa4953437c3e33f7111dd2e9...bitcoin-0.18.99-arm-linux-gnueabihf.tar.gz207dff956e026d6f9679e1c110fcea8c...bitcoin-0.18.99-i686-pc-linux-gnu-debug.tar.gz3be0fbb2cec2e82f750d4e6e95a0491c...bitcoin-0.18.99-i686-pc-linux-gnu.tar.gz0cff8fcb65a77eaf41516b6a16223c50...bitcoin-0.18.99-osx-unsigned.dmgf48471a165a696796db152905ad85ac4...bitcoin-0.18.99-osx64.tar.gzb91b86be4b1a2ccc7dd35a465045fe88...bitcoin-0.18.99-riscv64-linux-gnu-debug.tar.gzc6affc7220b73a5620eb3974334d36a3...bitcoin-0.18.99-riscv64-linux-gnu.tar.gzaff827d96724040d15528344e1ed1d77...bitcoin-0.18.99-win64-debug.zip737de316d6492acfef3b146c795806f9...bitcoin-0.18.99-win64-setup-unsigned.exefce3331b551bd82adbe8f8c9b99cdeb2...bitcoin-0.18.99-win64.zip8fcd6832224262c23ce356106fd5408c...bitcoin-0.18.99-x86_64-linux-gnu-debug.tar.gz7626a84419049ee9eae4cec94076ed45...bitcoin-0.18.99-x86_64-linux-gnu.tar.gzebbf2d891faa2ee73913d96bf58c13b8...bitcoin-0.18.99.tar.gzb4f451a5f7ba4bdaf00b45b7c7625607...bitcoin-core-linux-0.19-res.ymlc13fabf0163a2b54506659ca9bd7d3d0...bitcoin-core-linux-0.19-res.yml.diffcf28ce60bb8046177a09c1ec84e270ce...bitcoin-core-osx-0.19-res.yml41f8a3e298c987df39bb9abe4ffe65c4...bitcoin-core-osx-0.19-res.yml.diffb30c8d4ffe4f9f153d3d83f1d75bbcd9...bitcoin-core-win-0.19-res.ymld4ea7491af4324f76a057b80c2a71531...bitcoin-core-win-0.19-res.yml.diff1bb3f36245fe40d76a68ab0374c85979...linux-build.log67df4148cf235321be026a8275d7f72d...linux-build.log.diff9bc8773e0a3235f2e8141070ff1c0575...osx-build.logeb392d2e3698c40ae67682331c8ca9e4...osx-build.log.diffcde72094eaf91c24421d97555fe1c6f7...win-build.log6e8d74a2a4d2aff9b15ed25821f2c0cb...win-build.log.diff
DrahtBot removed the label Needs gitian build on Sep 7, 2019MarcoFalke commented at 11:36 AM on September 8, 2019: memberOn wayland:

ACK f091dc818085c3fa478374ea4378a0c1dd3d87f2
<details><summary>Show signature and timestamp</summary>
Signature:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ACK f091dc818085c3fa478374ea4378a0c1dd3d87f2 -----BEGIN PGP SIGNATURE----- iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p pUjv2wwAyGKJS+6XfjSTLy0M+NKqg7a0W4z0mo3JiZCdtq175Hxs5C2iHNFDlvuN hXrQk2FL72NunR8PtmR5GAdVG4IMGYvhHHO0rHLN1X2gWm4b8vt5IC8nkX+qTQt1 9sM42Sb6SZNmGGJ+izixguyFAtCjoMQXXISR92oeQ0jEIvkdLi8FEmeHw9nWrilm QGTS4RMvAQQv2vYx6LEnSIaMvf4JuxDEXCIbd3eGjD8Ow7fh2MLIvLavltOGT0km L+B4TG2hgMXmEWgyQgoNXCS8UtV0bNHpK+HAl+fvAb3FOeTCLi05B5Ov9uwV/4Op ht5gMn/v2zh1pWFk84LGm0I/prhHCcH7oZo/rAkQUbIMiBDqDirtgsxcwNQ6KBW3 i6rrIZD6on6SjOgqZ5ldZE65QLmB88qlKESY+M1qP3OGLFR990dbQD14xmig6Hy4 c1Dzvjp2lQNFs+tAdeOJ/xAcFfmZrN+Ljah7xWwCvF3e62LYk7kUtorYV83oBTa7 +Mj73GB3 =3jae -----END PGP SIGNATURE-----Timestamp of file with hash
8ac711f18c3af851cc7a0258501e8749c270844141aba0835ce6ff88d81b9afb -</details>
MarcoFalke referenced this in commit 410b745fe0 on Sep 8, 2019MarcoFalke merged this on Sep 8, 2019MarcoFalke closed this on Sep 8, 2019promag commented at 12:01 PM on September 8, 2019: memberCode review ACK f091dc818085c3fa478374ea4378a0c1dd3d87f2.
sidhujag referenced this in commit 37a2097b23 on Sep 10, 2019GChuf deleted the branch on Oct 9, 2019jasonbcox referenced this in commit 5eef6d1194 on Oct 16, 2020ftrader referenced this in commit c54452be37 on Apr 14, 2021PastaPastaPasta referenced this in commit 6f58c0778c on Sep 14, 2021PastaPastaPasta referenced this in commit 7c0219afa7 on Sep 14, 2021PastaPastaPasta referenced this in commit 8fcc517f52 on Sep 15, 2021DrahtBot locked this on Dec 16, 2021LabelsMilestone
0.19.0
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-21 18:14 UTC
More mirrored repositories can be found on mirror.b10c.me
windows master:
linux master:
