From 52e31d0b1df2fefbc1b8d3c184f43bf6eba0383a Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sun, 21 May 2023 15:12:30 -0600 Subject: [PATCH] GUI: Add additional handling --- resources/wx_gui/gui_macos_installer_flash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/wx_gui/gui_macos_installer_flash.py b/resources/wx_gui/gui_macos_installer_flash.py index f348541dc..30433ce20 100644 --- a/resources/wx_gui/gui_macos_installer_flash.py +++ b/resources/wx_gui/gui_macos_installer_flash.py @@ -289,7 +289,7 @@ class macOSInstallerFlashFrame(wx.Frame): try: total_bytes_written = float(utilities.monitor_disk_output(root_disk)) except: - pass + total_bytes_written = initial_bytes_written bytes_written = total_bytes_written - initial_bytes_written wx.CallAfter(bytes_written_label.SetLabel, f"Bytes Written: {bytes_written:.2f} MB") wx.CallAfter(progress_bar.SetValue, int(bytes_written))