mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-23 03:20:16 +10:00
GUI Flash: Use CallAfter() for byte info
This commit is contained in:
@@ -286,8 +286,8 @@ class macOSInstallerFlashFrame(wx.Frame):
|
|||||||
while thread.is_alive():
|
while thread.is_alive():
|
||||||
total_bytes_written = float(utilities.monitor_disk_output(root_disk))
|
total_bytes_written = float(utilities.monitor_disk_output(root_disk))
|
||||||
bytes_written = total_bytes_written - initial_bytes_written
|
bytes_written = total_bytes_written - initial_bytes_written
|
||||||
bytes_written_label.SetLabel(f"Bytes Written: {bytes_written:.2f} MB")
|
wx.CallAfter(bytes_written_label.SetLabel, f"Bytes Written: {bytes_written:.2f} MB")
|
||||||
progress_bar.SetValue(int(bytes_written))
|
wx.CallAfter(progress_bar.SetValue, int(bytes_written))
|
||||||
wx.Yield()
|
wx.Yield()
|
||||||
|
|
||||||
if self.result is False:
|
if self.result is False:
|
||||||
|
|||||||
Reference in New Issue
Block a user