Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix on TransactionsView - Disable if privacy mode is set during wallet selection #815

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pablomartin4btc
Copy link
Contributor

Currenlty on master, when the "mask values" checkbox is ticked if the user selects a different wallet, the history action is enable and if the user clicks on it can see all the transactions in the transaction view.

Peek 2024-04-09 17-37

This PR fixes it.

Peek 2024-04-09 17-45

Note for maintainers: this needs to be backported to 25.x and 26.x.

@DrahtBot
Copy link
Contributor

DrahtBot commented Apr 9, 2024

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
Stale ACK alfonsoromanz

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #733 (Deniability - a tool to automatically improve coin ownership privacy by denavila)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

Copy link
Contributor

@alfonsoromanz alfonsoromanz 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 d3da502

Copy link
Member

@luke-jr luke-jr left a comment

Choose a reason for hiding this comment

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

This feels like the wrong place to fix it. Why not inside setWalletActionsEnabled (or whatever is enabling it to begin with)?

@pablomartin4btc
Copy link
Contributor Author

This feels like the wrong place to fix it. Why not inside setWalletActionsEnabled (or whatever is enabling it to begin with)?

Yeah, it makes more sense, I'll rework it. Thanks!

@pablomartin4btc pablomartin4btc force-pushed the gui-disable-mask-values-and-tx-view-if-no-wallet-selected branch from d3da502 to 6c3b027 Compare May 22, 2024 10:39
@pablomartin4btc
Copy link
Contributor Author

Updates:

Copy link
Member

@luke-jr luke-jr left a comment

Choose a reason for hiding this comment

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

I'm pretty sure you can just modify the existing line in setWalletActionsEnabled to:

    historyAction->setEnabled(enabled && !isPrivacyModeActivated());

src/qt/bitcoingui.cpp Outdated Show resolved Hide resolved
src/qt/bitcoingui.cpp Outdated Show resolved Hide resolved
@pablomartin4btc
Copy link
Contributor Author

pablomartin4btc commented May 23, 2024

    historyAction->setEnabled(enabled && !isPrivacyModeActivated());

Just replacing the operator with || (e.g. when the user closes all wallets, all tabs will be disabled except for Transactions).

@pablomartin4btc pablomartin4btc force-pushed the gui-disable-mask-values-and-tx-view-if-no-wallet-selected branch from 6c3b027 to 6180086 Compare May 23, 2024 08:35
@pablomartin4btc
Copy link
Contributor Author

Updates:

@luke-jr
Copy link
Member

luke-jr commented May 23, 2024

This one-line change works without anything else:

#815 (review)

@pablomartin4btc
Copy link
Contributor Author

This one-line change works without anything else:

#815 (review)

Sorry, I made another mistake, thanks for double checking.

To other reviewers: please hold on till next push, thanks.

Making sure that if the privacy mode is activaded during
the wallet selection, the transaction view is not shown.
@pablomartin4btc pablomartin4btc force-pushed the gui-disable-mask-values-and-tx-view-if-no-wallet-selected branch from 6180086 to 260d6eb Compare May 24, 2024 11:03
@pablomartin4btc
Copy link
Contributor Author

Updates:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants