Fixed smaller issue with modal.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user