Skip to content

Commit

Permalink
Minor enhancement: Set action_mincut action disabled when open existi…
Browse files Browse the repository at this point in the history
…ng mincut (improve last commit)
  • Loading branch information
edgarfuste committed May 3, 2021
1 parent 7114577 commit 99987e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/shared/mincut.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def load_mincut(self, result_mincut_id):
self.dlg_mincut.btn_end.setDisabled(True)
# Actions
if self.mincut_class == 1:
self.action_mincut.setDisabled(False)
self.action_mincut.setDisabled(True)
self.action_refresh_mincut.setDisabled(False)
self.action_custom_mincut.setDisabled(False)
self.action_change_valve_status.setDisabled(False)
Expand Down

0 comments on commit 99987e6

Please sign in to comment.