GUI: Move delay to sys_patch_start.py

This commit is contained in:
Mykola Grymalyuk
2023-05-29 10:11:22 -06:00
parent c62fefb575
commit d0eac893fe
2 changed files with 6 additions and 6 deletions
+1 -6
View File
@@ -1,11 +1,10 @@
# Entry point for the wxPython GUI # Entry point for the wxPython GUI
import wx import wx
import sys import sys
import time
import atexit import atexit
import logging import logging
from resources import constants, global_settings from resources import constants
from resources.wx_gui import ( from resources.wx_gui import (
gui_main_menu, gui_main_menu,
gui_build, gui_build,
@@ -38,10 +37,6 @@ class EntryPoint:
def _generate_base_data(self) -> None: def _generate_base_data(self) -> None:
delay = global_settings.GlobalEnviromentSettings().read_property("APP_DELAY_TIME")
if not (isinstance(delay, int) | isinstance(delay, float)):
delay = 1
time.sleep(delay)
self.app = wx.App() self.app = wx.App()
self.app.SetAppName(self.constants.patcher_name) self.app.SetAppName(self.constants.patcher_name)
+5
View File
@@ -13,6 +13,7 @@ from pathlib import Path
from resources import ( from resources import (
constants, constants,
kdk_handler, kdk_handler,
global_settings,
) )
from resources.sys_patch import ( from resources.sys_patch import (
sys_patch, sys_patch,
@@ -43,6 +44,10 @@ class SysPatchStartFrame(wx.Frame):
super(SysPatchStartFrame, self).__init__(parent, title=title, size=(350, 200), style=wx.DEFAULT_FRAME_STYLE & ~(wx.RESIZE_BORDER | wx.MAXIMIZE_BOX)) super(SysPatchStartFrame, self).__init__(parent, title=title, size=(350, 200), style=wx.DEFAULT_FRAME_STYLE & ~(wx.RESIZE_BORDER | wx.MAXIMIZE_BOX))
gui_support.GenerateMenubar(self, self.constants).generate() gui_support.GenerateMenubar(self, self.constants).generate()
delay = global_settings.GlobalEnviromentSettings().read_property("APP_DELAY_TIME")
if not (isinstance(delay, int) | isinstance(delay, float)):
delay = 1
time.sleep(delay)
self.Centre() self.Centre()
if self.patches == {}: if self.patches == {}: