mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Scenario: Add delete scenario command and use undo command.
This commit is contained in:
1 parent
064b3efa13
commit
29df56c8b4
9 files changed
+171
-34
No files matched your search
@@ -68,3 +68,10 @@ class Scenarios(PamhyrModelDict):
|
||||
self._dict
|
||||
)
|
||||
)
|
||||
|
||||
def delete(self, key):
|
||||
el = self._dict.get(key)
|
||||
if el is None:
|
||||
return
|
||||
|
||||
el.set_as_deleted()
|
||||
Reference in new issue
Block a user