Skip to content

Commit

Permalink
Disable list picker button after adding a new item
Browse files Browse the repository at this point in the history
  • Loading branch information
s-simoncelli committed Feb 17, 2024
1 parent 0042a30 commit acd9126
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@ def on_form_save(
# noinspection PyUnresolvedReferences
self.model.layoutChanged.emit()

# disable buttons on change
self.move_up.setEnabled(False)
self.move_down.setEnabled(False)
self.delete_button.setEnabled(False)

def sanitise_value(
self, value: list[int | float | str | dict]
) -> [list[dict | str], str | None]:
Expand Down

0 comments on commit acd9126

Please sign in to comment.