mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 14:10:51 +10:00
gui_main.py: Add "Search for disks again" option
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
- Implement Modal Sheets for longer windows
|
- Implement Modal Sheets for longer windows
|
||||||
- Avoids UI elements getting under the dock
|
- Avoids UI elements getting under the dock
|
||||||
- Add return to disk when selecting partitions
|
- Add return to disk when selecting partitions
|
||||||
|
- Add "Search for disks again" option during OpenCore Install
|
||||||
- Resolve failing to find binaries with `--patch_sys_vol` argument
|
- Resolve failing to find binaries with `--patch_sys_vol` argument
|
||||||
|
|
||||||
## 0.4.5
|
## 0.4.5
|
||||||
|
|||||||
+13
-4
@@ -746,14 +746,23 @@ class wx_python_gui:
|
|||||||
self.install_button.Centre(wx.HORIZONTAL)
|
self.install_button.Centre(wx.HORIZONTAL)
|
||||||
|
|
||||||
|
|
||||||
|
self.reload_button = wx.Button(self.frame, label="Search for Disks Again", size=(150,-1))
|
||||||
self.return_to_main_menu = wx.Button(self.frame, label="Return to Main Menu")
|
self.reload_button.SetPosition(
|
||||||
self.return_to_main_menu.SetPosition(
|
|
||||||
wx.Point(
|
wx.Point(
|
||||||
self.install_button.GetPosition().x,
|
self.install_button.GetPosition().x,
|
||||||
self.install_button.GetPosition().y + self.install_button.GetSize().height + 10
|
self.install_button.GetPosition().y + self.install_button.GetSize().height + 10
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
self.reload_button.Bind(wx.EVT_BUTTON, self.install_menu)
|
||||||
|
self.reload_button.Centre(wx.HORIZONTAL)
|
||||||
|
|
||||||
|
self.return_to_main_menu = wx.Button(self.frame, label="Return to Main Menu", size=(150,-1))
|
||||||
|
self.return_to_main_menu.SetPosition(
|
||||||
|
wx.Point(
|
||||||
|
self.reload_button.GetPosition().x,
|
||||||
|
self.reload_button.GetPosition().y + self.reload_button.GetSize().height + 7.5
|
||||||
|
)
|
||||||
|
)
|
||||||
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)
|
||||||
|
|
||||||
@@ -854,7 +863,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_modal.SetSize(-1, self.return_to_main_menu.GetPosition().y + self.return_to_main_menu.GetSize().height + 40)
|
self.frame_modal.SetSize(-1, self.return_to_main_menu.GetPosition().y + self.return_to_main_menu.GetSize().height + 20)
|
||||||
|
|
||||||
if result is True:
|
if result is True:
|
||||||
self.reboot_system(message="OpenCore has finished installing to disk.\n\nYou will need to reboot and hold the Option key and select OpenCore/Boot EFI's option.\n\nWould you like to reboot?")
|
self.reboot_system(message="OpenCore has finished installing to disk.\n\nYou will need to reboot and hold the Option key and select OpenCore/Boot EFI's option.\n\nWould you like to reboot?")
|
||||||
|
|||||||
Reference in New Issue
Block a user