GUI: Fix delay logic

This commit is contained in:
Mykola Grymalyuk
2023-05-29 09:55:11 -06:00
parent e133beee36
commit cee8d8e768

View File

@@ -39,7 +39,7 @@ class EntryPoint:
def _generate_base_data(self) -> None:
delay = global_settings.GlobalEnviromentSettings().read_property("APP_DELAY_TIME")
if not isinstance(delay, int or float):
if not (isinstance(delay, int) | isinstance(delay, float)):
delay = 1
time.sleep(delay)
self.app = wx.App()