Fixed smaller issue with modal.

This commit is contained in:
2020-01-05 23:58:07 +01:00
parent 17153d78b6
commit b14e050ec0
2 changed files with 18 additions and 23 deletions

View File

@@ -35,7 +35,7 @@ class Model:
def pre_reset(self):
# the reset before updating models
self.menu_target = None
self.modal_shown = False
self.modal_reset()
def post_reset(self):
# the reset after updating the models
@@ -43,6 +43,11 @@ class Model:
def modal_reset(self):
self.modal = lambda: []
self.modal_shown = False
def modal_set(self, modal):
self.modal = modal
self.modal_shown = True
def import_xml(self, xml_text):