-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feature/clean button #838
Feature/clean button #838
Conversation
also, modified a bit the logic of kill button (hidden by default, as sometimes it is loaded - seen for a second - but not necessary)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #838 +/- ##
==========================================
- Coverage 67.95% 67.84% -0.12%
==========================================
Files 50 50
Lines 4475 4503 +28
==========================================
+ Hits 3041 3055 +14
- Misses 1434 1448 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
def _update_clean_scratch_button_layout(self): | ||
"""Update the layout of the kill button.""" | ||
# The button is hidden by default, but if we load a new process, we hide again. | ||
if self.process is None or self.process == "": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not self.process:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
) | ||
except (OSError, KeyError): | ||
pass | ||
self.clean_scratch_button.disabled = False not in cleaned_bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not any(clean_bool)
Does this one work ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I implemented self...disabled=all(cleaned_bool)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! , thank you Miki
This fixes #815
For now, the
clean remote data
button is always shown for a finished workchain; if the remote folders are empty, the button is still there but is disabled. I am not sure if we should always display it, and that the name of the button is the best suited one.waiting for some comments @AndresOrtegaGuerrero , @superstar54