mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
GUI: set modal work-around to Big Sur+
This commit is contained in:
+3
-1
@@ -1,6 +1,7 @@
|
|||||||
import wx
|
import wx
|
||||||
import webbrowser
|
import webbrowser
|
||||||
from resources import constants
|
from resources import constants
|
||||||
|
from data import os_data
|
||||||
|
|
||||||
class gui_help_menu:
|
class gui_help_menu:
|
||||||
def __init__(self, versions, frame, frame_modal):
|
def __init__(self, versions, frame, frame_modal):
|
||||||
@@ -18,7 +19,8 @@ class gui_help_menu:
|
|||||||
else:
|
else:
|
||||||
self.frame_modal.DestroyChildren()
|
self.frame_modal.DestroyChildren()
|
||||||
self.frame_modal.Close()
|
self.frame_modal.Close()
|
||||||
self.frame_modal.ShowWithoutActivating()
|
if self.constants.detected_os >= os_data.os_data.big_sur:
|
||||||
|
self.frame_modal.ShowWithoutActivating()
|
||||||
|
|
||||||
def help_menu(self, event=None):
|
def help_menu(self, event=None):
|
||||||
# Define Menu
|
# Define Menu
|
||||||
|
|||||||
+2
-1
@@ -117,7 +117,8 @@ class wx_python_gui:
|
|||||||
# If the previous frame was a modal, the new frame will anchor onto it
|
# If the previous frame was a modal, the new frame will anchor onto it
|
||||||
# instead of the core frame
|
# instead of the core frame
|
||||||
# Calling ShowWithoutActivating() resets the frame position
|
# Calling ShowWithoutActivating() resets the frame position
|
||||||
self.frame_modal.ShowWithoutActivating()
|
if self.constants.detected_os >= os_data.os_data.big_sur:
|
||||||
|
self.frame_modal.ShowWithoutActivating()
|
||||||
|
|
||||||
def use_non_metal_alternative(self):
|
def use_non_metal_alternative(self):
|
||||||
if self.constants.detected_os >= os_data.os_data.monterey:
|
if self.constants.detected_os >= os_data.os_data.monterey:
|
||||||
|
|||||||
Reference in New Issue
Block a user