Skip to content

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

Merged
janezd merged 1 commit intobiolab:masterfrom
lanzagar:file-apply-de
Nov 11, 2016
Merged

[FIX] owfile: Hide apply button after resetting editor_model#1711
janezd merged 1 commit intobiolab:masterfrom
lanzagar:file-apply-de

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. :)

# 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