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

Disable refresh #680

Merged
merged 1 commit into from
Jan 10, 2020
Merged

Disable refresh #680

merged 1 commit into from
Jan 10, 2020

Conversation

sssoleileraaa
Copy link
Contributor

@sssoleileraaa sssoleileraaa commented Jan 2, 2020

Description

Fixes #388

We're having discussions on removing the RefreshButton all together, so this fix is temporary - I just happened to be in this area of the code while consolidating load_toggle_icon with load_icon.

Test Plan

  1. add a sleep in storage::get_remote_data
  2. run the client and click refresh multiple times
  3. only see the first sync that happens on login + one sync at a time from clicking refresh

rmol
rmol previously approved these changes Jan 7, 2020
Copy link
Contributor

@rmol rmol left a comment

Choose a reason for hiding this comment

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

Works for me -- clicking the refresh icon results in one get_remote_data call, and further clicks while that's happening don't result in more invocations.

All the pointer state changes do nothing on Qubes, unfortunately, but that's a known problem.

We do seem to have the convention of starting boolean variable names with is_, but if this widget is going away, so will the inconsistency.

securedrop_client/gui/widgets.py Outdated Show resolved Hide resolved
@sssoleileraaa
Copy link
Contributor Author

@rmol I rebased onto the wrong branch and it took me a few attempts to fix 🤕

Should be ready for another review now!

@rmol rmol merged commit f1facac into master Jan 10, 2020
@rmol rmol deleted the disable_refresh branch January 10, 2020 19:12
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.

Sync icon should be disabled during active sync
2 participants