Skip to content

Commit

Permalink
🪲 Fix slider crashing the program.
Browse files Browse the repository at this point in the history
  • Loading branch information
vanyle committed Jan 7, 2022
1 parent b130f33 commit 1153990
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions pyflow/blocks/codeblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ def run_code(self):

super().run_code() # actually run the code

def execution_finished(self):
super().execution_finished()
self.run_button.setText(">")
self.run_all_button.setText(">>")

def update_title(self):
"""Change the geometry of the title widget."""
self.title_widget.setGeometry(
Expand Down
2 changes: 0 additions & 2 deletions pyflow/blocks/executableblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ def run_code(self):
def execution_finished(self):
"""Reset the text of the run buttons."""
self.run_state = 0
self.run_button.setText(">")
self.run_all_button.setText(">>")
self.blocks_to_run = []

def _interrupt_execution(self):
Expand Down

0 comments on commit 1153990

Please sign in to comment.