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
  1. GChuf commented at 5:53 PM on August 27, 2019: contributor

    Removed "Main Window" and "Restore" menu option for Windows and linux Keep the options for macOS

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

    Screenshot_74

    Before and after for linux (and windows):

    Screenshot_71 Screenshot_75

    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
    
  3. molxyz commented at 5:58 PM on August 27, 2019: none

    @GChuf Thank you! I made this request several times but for some reason it seemed to go into deaf ears. Hopefully this time someone will listen to you. Thank you very much! :)

  4. GChuf commented at 6:01 PM on August 27, 2019: contributor

    @molxyz surprised to see you here actually, given that it was an "old" issue and I haven't seen you around yet, but I'm glad you responded! Once I saw your comment I confirmed to myself this is an issue that needs to be addressed.

  5. MarcoFalke commented at 6:09 PM on August 27, 2019: member

    Concept ACK

  6. hebasto commented at 7:26 PM on August 27, 2019: member

    Concept ACK

  7. DrahtBot added the label GUI on Aug 27, 2019
  8. emilengler commented at 8:21 PM on August 27, 2019: contributor

    Concept ACK

  9. 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 Minimize in windows? IIRC the context menu of the window icon has that option?

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

  11. 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
  12. 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.

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

  14. MarcoFalke added the label Needs gitian build on Aug 28, 2019
  15. DrahtBot removed the label Needs gitian build on Aug 29, 2019
  16. molxyz commented at 10:47 AM on August 30, 2019: none

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

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

  18. 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?

  19. GUI: Remove unused menu items for Windows and Linux f091dc8180
  20. kristapsk approved
  21. kristapsk commented at 8:37 PM on August 30, 2019: contributor

    ACK f091dc818085c3fa478374ea4378a0c1dd3d87f2 (tested on Linux with Xfce4)

  22. GChuf commented at 1:41 PM on September 2, 2019: contributor

    Tested gitian builds additionally on Windows 10 (1709) and Ubuntu 16.04.1, working as expected.

  23. MarcoFalke deleted a comment on Sep 6, 2019
  24. MarcoFalke added the label Needs gitian build on Sep 6, 2019
  25. MarcoFalke commented at 2:12 PM on September 6, 2019: member

    unsigned ACK f091dc818085c3fa478374ea4378a0c1dd3d87f2

  26. MarcoFalke added this to the milestone 0.19.0 on Sep 6, 2019
  27. DrahtBot commented at 3:57 AM on September 7, 2019: member

    <!--a722867cd34abeea1fadc8d60700f111-->

    Gitian builds for commit 5e202382a987351a59d5cda98ea9f2aee99f61a5 (master):

    Gitian builds for commit 21ede319ab654e0a8ac2300588d703ab77a29e8b (master and this pull):

  28. DrahtBot removed the label Needs gitian build on Sep 7, 2019
  29. fanquake commented at 7:51 AM on September 8, 2019: member

    ACK f091dc818085c3fa478374ea4378a0c1dd3d87f2 - tested on macOS, Windows and Linux.

    macOS master: macOS_master #16735: macOS_16735 windows master: windows_master #16735: Windows_16735 linux master: linux_master #16735: linux_16735

  30. MarcoFalke commented at 11:36 AM on September 8, 2019: member

    On wayland: after_

    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>

  31. MarcoFalke referenced this in commit 410b745fe0 on Sep 8, 2019
  32. MarcoFalke merged this on Sep 8, 2019
  33. MarcoFalke closed this on Sep 8, 2019

  34. promag commented at 12:01 PM on September 8, 2019: member

    Code review ACK f091dc818085c3fa478374ea4378a0c1dd3d87f2.

  35. sidhujag referenced this in commit 37a2097b23 on Sep 10, 2019
  36. GChuf deleted the branch on Oct 9, 2019
  37. jasonbcox referenced this in commit 5eef6d1194 on Oct 16, 2020
  38. ftrader referenced this in commit c54452be37 on Apr 14, 2021
  39. PastaPastaPasta referenced this in commit 6f58c0778c on Sep 14, 2021
  40. PastaPastaPasta referenced this in commit 7c0219afa7 on Sep 14, 2021
  41. PastaPastaPasta referenced this in commit 8fcc517f52 on Sep 15, 2021
  42. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

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

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me