Skip to content

Commit

Permalink
Improve drag and drop UX
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Mautone committed Jan 5, 2024
1 parent 232ecf5 commit a058649
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script_editor/editor_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ def update_user_steps_list(self):
user_steps_for_script = get_grouped_user_steps_for_script(self.script_id)
self.user_steps_list_size = len(user_steps_for_script)
self.update_run_script_button_state()
list_parent = self.user_steps_list.parent
list_parent.remove_widget(self.user_steps_list)
self.user_steps_list = build()
list_parent.add_widget(self.user_steps_list)
self.user_steps_list.data = [
EditorRecycleViewItem().build(root_widget=self, text=item.name, user_step_id=item.id,
user_step_command_id=item.command_id)
Expand Down

0 comments on commit a058649

Please sign in to comment.