mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
discard_changes is wrapped with ignore changes
This commit is contained in:
parent
b6ae795482
commit
ca36327713
1 changed files with 6 additions and 1 deletions
|
|
@ -61,8 +61,13 @@ class BaseWidget(QtWidgets.QWidget):
|
|||
if not self.entity.has_unsaved_changes:
|
||||
return
|
||||
|
||||
def discard_changes():
|
||||
self.ignore_input_changes.set_ignore(True)
|
||||
self.entity.discard_changes()
|
||||
self.ignore_input_changes.set_ignore(False)
|
||||
|
||||
action = QtWidgets.QAction("Discard changes")
|
||||
actions_mapping[action] = self.entity.discard_changes
|
||||
actions_mapping[action] = discard_changes
|
||||
menu.addAction(action)
|
||||
|
||||
def _set_project_override_action(self, menu, actions_mapping):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue