Skip to content

Commit

Permalink
Fix race condition associated with toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
JuiP committed Jul 26, 2020
1 parent e185866 commit eab3bf6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ def __configure_cb(self, event):

def build_toolbar(self):
toolbar_box = ToolbarBox()
self.set_toolbar_box(toolbar_box)
toolbar_box.show()

activity_button = ActivityToolbarButton(self)
toolbar_box.toolbar.insert(activity_button, -1)
Expand All @@ -63,7 +61,8 @@ def build_toolbar(self):
stop_button.show()
stop_button.connect('clicked', self._stop_cb)

self.show_all()
self.set_toolbar_box(toolbar_box)
toolbar_box.show()

def read_file(self, file_path):
pass
Expand Down

0 comments on commit eab3bf6

Please sign in to comment.