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

[FIX] owfile: Hide apply button after resetting editor_model #1711

Merged
merged 1 commit into from
Nov 11, 2016

Conversation

lanzagar
Copy link
Contributor

@lanzagar lanzagar commented Nov 4, 2016

Issue

After changes to domain editor the Apply button appears. It was not hidden again when different data was selected.

Description of changes

Hide apply button when load_data is called and editor_model reset.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov-io
Copy link

codecov-io commented Nov 4, 2016

Current coverage is 88.87% (diff: 100%)

Merging #1711 into master will not change coverage

@@             master      #1711   diff @@
==========================================
  Files            82         82          
  Lines          8819       8819          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           7838       7838          
  Misses          981        981          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update ad4c887...8993e54

@lanzagar lanzagar changed the title owfile: Hide apply button after resetting editor_model [FIX] owfile: Hide apply button after resetting editor_model Nov 4, 2016
@janezd
Copy link
Contributor

janezd commented Nov 4, 2016

Congratulations: you will have to rebase this one-line PR before it can be merged. :)

@@ -263,6 +263,7 @@ def load_data(self):
# file readers
# pylint: disable=broad-except
self.editor_model.set_domain(None)
self.apply_button.hide()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we please agree disabling is better UX than hiding?

self.apply_button.setEnabled(False)

@lanzagar
Copy link
Contributor Author

Rebased and switched to disabling/enabling the button instead of hiding/showing.

Also switch to enabled/disabled button instead of
shown/hidden.
@janezd janezd merged commit d051ea9 into biolab:master Nov 11, 2016
@astaric astaric modified the milestone: 3.3.9 Nov 28, 2016
@lanzagar lanzagar deleted the file-apply-de branch March 14, 2022 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants