mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-19 22:00:00 +10:00
gui_main.py: Set expected install size as variable
This commit is contained in:
@@ -2153,7 +2153,8 @@ class wx_python_gui:
|
|||||||
self.developer_note_label_2.Centre(wx.HORIZONTAL)
|
self.developer_note_label_2.Centre(wx.HORIZONTAL)
|
||||||
|
|
||||||
# Progress Bar
|
# Progress Bar
|
||||||
self.progress_bar = wx.Gauge(self.frame, range=16000, size=(-1, 20))
|
max_file_size = 1024 * 1024 * 1024 * 18 # 18GB, best guess for installer + chainloaded packages
|
||||||
|
self.progress_bar = wx.Gauge(self.frame, range=max_file_size, size=(-1, 20))
|
||||||
self.progress_bar.SetPosition(
|
self.progress_bar.SetPosition(
|
||||||
wx.Point(
|
wx.Point(
|
||||||
self.developer_note_label_2.GetPosition().x,
|
self.developer_note_label_2.GetPosition().x,
|
||||||
@@ -2229,7 +2230,7 @@ class wx_python_gui:
|
|||||||
wx.GetApp().Yield()
|
wx.GetApp().Yield()
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
self.progress_bar.SetValue(16000)
|
self.progress_bar.SetValue(max_file_size)
|
||||||
self.progress_label.SetLabel(f"Finished Running Installer Creation Script")
|
self.progress_label.SetLabel(f"Finished Running Installer Creation Script")
|
||||||
self.progress_label.Centre(wx.HORIZONTAL)
|
self.progress_label.Centre(wx.HORIZONTAL)
|
||||||
if self.finished_cim_process is True:
|
if self.finished_cim_process is True:
|
||||||
|
|||||||
Reference in New Issue
Block a user