Fix: Ensure ‘Transaction View’ remains disabled if no wallet is selected #780

pull pablomartin4btc wants to merge 1 commits into bitcoin-core:master from pablomartin4btc:gui-disable-mask-values-and-tx-view-if-no-wallet-selected changing 1 files +4 −2
  1. pablomartin4btc commented at 5:10 am on December 7, 2023: contributor

    This PR addresses an issue where, with no wallet selected, ticking on “Settings -> Mask values” checkbox twice enables the transaction tab when the checkbox is unticked.

    Peek 2023-12-06 19-18

    Peek 2023-12-07 13-07

    Note for maintaners: this PR should be backported to both 25.x and 26.x.


    Originally this PR was disabling the “Mask Values” checkbox when no wallet was selected but since a reviewer pointed out that a user might want to open a wallet already on “privacy mode” I rolled that change out.

    Peek 2023-12-06 19-11

  2. DrahtBot commented at 5:10 am on December 7, 2023: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK alfonsoromanz, hebasto
    Concept ACK luke-jr, BrandonOdiwuor

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  3. MarnixCroes commented at 9:22 am on December 7, 2023: contributor

    nice find

    I’m not sure if this is the right approach: user might want to enable Mask values before opening his wallet?

  4. pablomartin4btc commented at 3:46 pm on December 7, 2023: contributor

    I’m not sure if this is the right approach: user might want to enable Mask values before opening his wallet?

    Interesting point of view, I agree with it… Not sure if other wallet apps do it but ok, I’ll remove that “fix” and perhaps other reviewers give their opinions on it. Thanks for the review!

  5. qt: update widgets availability on wallet selection
    The Transaction View should be only enabled when a wallet is selected.
    Therefore it has been added a condition for a selected wallet on
    enableHistoryAction() since its availability also depends on the mask
    value checkbox.
    b2e531e70a
  6. pablomartin4btc force-pushed on Dec 7, 2023
  7. pablomartin4btc renamed this:
    Fix: Disable both "Mask Values" and "Transaction View" if no wallet is selected
    Fix: Ensure 'Transaction View' remains disabled if no wallet is selected
    on Dec 7, 2023
  8. pablomartin4btc commented at 4:54 pm on December 7, 2023: contributor

    I’m not sure if this is the right approach: user might want to enable Mask values before opening his wallet?

    I was just giving it a second thought and if we follow the original approach a user could still have the desired behaviour as the following:

    Peek 2023-12-07 13-42

    First time the user opens or creates a wallet can tick the checkbox on “Mask Values”, this is also persisted, so next time the wallet is open or selected will be on privacy mode. The fix was not changing the current value of the “Mask Values”, so if a user updates QT to the version containing the fix it won’t impact on their setup.

  9. luke-jr approved
  10. luke-jr commented at 6:48 pm on December 17, 2023: member
    utACK
  11. MarnixCroes commented at 10:19 pm on December 18, 2023: contributor

    I’m not sure if this is the right approach: user might want to enable Mask values before opening his wallet?

    I was just giving it a second thought and if we follow the original approach a user could still have the desired behaviour as the following: check display here

    First time the user opens or creates a wallet can tick the checkbox on “Mask Values”, this is also persisted, so next time the wallet is open or selected will be on privacy mode. The fix was not changing the current value of the “Mask Values”, so if a user updates QT to the version containing the fix it won’t impact on their setup. @pablomartin4btc yes correct it remembers if Mask Values is enabled or not.

    Being only able to change it requires a wallet to be open, to me would feel like a bug, no? that’s more my “concern”

  12. pablomartin4btc commented at 1:29 am on December 19, 2023: contributor

    Being only able to change it requires a wallet to be open, to me would feel like a bug, no? that’s more my “concern”

    Fair enough, thanks for sharing your insights.

  13. alfonsoromanz approved
  14. DrahtBot requested review from luke-jr on Dec 22, 2023
  15. pablomartin4btc commented at 1:21 pm on December 28, 2023: contributor
    Thanks @MarnixCroes, @luke-jr and @alfonsoromanz for reviewing!
  16. BrandonOdiwuor commented at 1:44 pm on December 28, 2023: contributor
    Concept ACK
  17. DrahtBot added the label CI failed on Jan 14, 2024
  18. hebasto approved
  19. hebasto commented at 10:44 pm on February 11, 2024: member
    ACK b2e531e70a88f5c9e1c055ae7341520a3128e15d, tested on Ubuntu 22.04.
  20. DrahtBot requested review from BrandonOdiwuor on Feb 11, 2024
  21. hebasto merged this on Feb 11, 2024
  22. hebasto closed this on Feb 11, 2024


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 09:20 UTC

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