Explorar el Código

Ava: Fix Updater crashing on Linux (#4457)

TSRBerry hace 3 años
padre
commit
1f8d66db7c
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      Ryujinx.Ava/Modules/Updater/Updater.cs

+ 5 - 0
Ryujinx.Ava/Modules/Updater/Updater.cs

@@ -506,6 +506,11 @@ namespace Ryujinx.Modules
 
                             Dispatcher.UIThread.Post(() =>
                             {
+                                if (tarEntry is null)
+                                {
+                                    return;
+                                }
+
                                 taskDialog.SetProgressBarState(GetPercentage(tarEntry.Size, inStream.Length), TaskDialogProgressState.Normal);
                             });
                         }