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

Run history_list_filter hook on updated labels #1990

Merged
merged 4 commits into from
Sep 12, 2020

Conversation

jonas-lundqvist
Copy link

This way an edited label can be filtered directly instead of during
update of the entire history_list.

This can be seen if someone has CashFusion running and the "Hide
CashFusions" option enabled and proceeds to rename a label to start with
"CashFusion ".
Without this fix the transaction is not hidden until the
wallet is restarted or the "Hide CashFusions" option is toggled off and
on.

This way an edited label can be filtered directly instead of during
update of the entire history_list.

This can be seen if someone has CashFusion running and the "Hide
CashFusions" option enabled and proceeds to rename a label to start with
"CashFusion ".
Without this fix the transaction is not hidden until the
wallet is restarted or the "Hide CashFusions" option is toggled off and
on.
gui/qt/history_list.py Outdated Show resolved Hide resolved
gui/qt/history_list.py Outdated Show resolved Hide resolved
gui/qt/history_list.py Outdated Show resolved Hide resolved
@cculianu
Copy link
Collaborator

Ok, looks good man. Thanks for being responsive and for the change. Merging.

@cculianu cculianu merged commit 8a4774c into Electron-Cash:master Sep 12, 2020
cculianu added a commit that referenced this pull request Sep 12, 2020
This was the history list filter PR. This was included in release 4.1.1
but we forgot to mention it in RELEASE-NOTES since it made it in just
before release.
EchterAgo pushed a commit to EchterAgo/Electron-Cash that referenced this pull request Mar 9, 2021
* Run history_list_filter hook on updated labels

This way an edited label can be filtered directly instead of during
update of the entire history_list.

This can be seen if someone has CashFusion running and the "Hide
CashFusions" option enabled and proceeds to rename a label to start with
"CashFusion ".
Without this fix the transaction is not hidden until the
wallet is restarted or the "Hide CashFusions" option is toggled off and
on.

* Create itemChanged callback for history_list

* Send None as h_item

This is to avoid a costly wallet.get_history() call.

* Use item.text() instead of item.data()
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

2 participants