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