mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
GUI: Add delay handler
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
# 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
|
from resources import constants, global_settings
|
||||||
from resources.wx_gui import (
|
from resources.wx_gui import (
|
||||||
gui_main_menu,
|
gui_main_menu,
|
||||||
gui_build,
|
gui_build,
|
||||||
@@ -37,6 +38,10 @@ 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 or 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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user