mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-19 22:00:00 +10:00
gui_main.py: Show download frame before download starts
This commit is contained in:
+2
-1
@@ -1463,7 +1463,7 @@ class wx_python_gui:
|
|||||||
self.header.Centre(wx.HORIZONTAL)
|
self.header.Centre(wx.HORIZONTAL)
|
||||||
|
|
||||||
# Label: Download...
|
# Label: Download...
|
||||||
self.download_label = wx.StaticText(self.frame, label="Downloading...")
|
self.download_label = wx.StaticText(self.frame, label="Starting download shortly...")
|
||||||
self.download_label.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD))
|
self.download_label.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD))
|
||||||
self.download_label.SetPosition(
|
self.download_label.SetPosition(
|
||||||
wx.Point(
|
wx.Point(
|
||||||
@@ -1485,6 +1485,7 @@ class wx_python_gui:
|
|||||||
self.return_to_main_menu.Bind(wx.EVT_BUTTON, self.main_menu)
|
self.return_to_main_menu.Bind(wx.EVT_BUTTON, self.main_menu)
|
||||||
self.return_to_main_menu.Centre(wx.HORIZONTAL)
|
self.return_to_main_menu.Centre(wx.HORIZONTAL)
|
||||||
self.frame.SetSize(-1, self.return_to_main_menu.GetPosition().y + self.return_to_main_menu.GetSize().height + 40)
|
self.frame.SetSize(-1, self.return_to_main_menu.GetPosition().y + self.return_to_main_menu.GetSize().height + 40)
|
||||||
|
wx.GetApp().Yield()
|
||||||
|
|
||||||
# Download macOS install data
|
# Download macOS install data
|
||||||
if installer.download_install_assistant(self.constants.payload_path, app_dict['Link']):
|
if installer.download_install_assistant(self.constants.payload_path, app_dict['Link']):
|
||||||
|
|||||||
+2
-11
@@ -1,19 +1,10 @@
|
|||||||
# Handle misc CLI menu options
|
# PyObjc Handling for IOKit
|
||||||
# Copyright (C) 2020-2022, Dhinak G
|
# Copyright (C) 2020-2022, Dhinak G
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import NewType, Union
|
from typing import NewType, Union
|
||||||
import subprocess
|
import objc
|
||||||
|
|
||||||
try:
|
|
||||||
import objc
|
|
||||||
except ImportError:
|
|
||||||
subprocess.run(["pip3", "install", "pyobjc"], stdout=subprocess.PIPE)
|
|
||||||
try:
|
|
||||||
import objc
|
|
||||||
except ImportError:
|
|
||||||
raise Exception("Missing PyObjc library!\nPlease run the following before starting OCLP:\npip3 install pyobjc")
|
|
||||||
|
|
||||||
from CoreFoundation import CFRelease, kCFAllocatorDefault # type: ignore # pylint: disable=no-name-in-module
|
from CoreFoundation import CFRelease, kCFAllocatorDefault # type: ignore # pylint: disable=no-name-in-module
|
||||||
from Foundation import NSBundle # type: ignore # pylint: disable=no-name-in-module
|
from Foundation import NSBundle # type: ignore # pylint: disable=no-name-in-module
|
||||||
|
|||||||
Reference in New Issue
Block a user