Commit 568d702e authored by sumpfralle's avatar sumpfralle

fix "Show progress" button behaviour


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@904 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 666a0fbe
...@@ -3103,6 +3103,8 @@ class ProjectGui: ...@@ -3103,6 +3103,8 @@ class ProjectGui:
self.add_to_recent_file_list(filename) self.add_to_recent_file_list(filename)
def toggle_progress_bar(self, status): def toggle_progress_bar(self, status):
# always hide the progress button - it will be enabled later
self.show_progress_button.hide()
if status: if status:
self.menubar.set_sensitive(False) self.menubar.set_sensitive(False)
self.task_pane.set_sensitive(False) self.task_pane.set_sensitive(False)
...@@ -3116,7 +3118,6 @@ class ProjectGui: ...@@ -3116,7 +3118,6 @@ class ProjectGui:
self.progress_widget.hide() self.progress_widget.hide()
self.task_pane.set_sensitive(True) self.task_pane.set_sensitive(True)
self.menubar.set_sensitive(True) self.menubar.set_sensitive(True)
self.show_progress_button.hide()
def disable_progress_cancel_button(self): def disable_progress_cancel_button(self):
""" mainly useful for non-interruptable operations (e.g. model """ mainly useful for non-interruptable operations (e.g. model
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment