Sfoglia il codice sorgente

Revert "Wait for async task to complete (#7122)" (#7318)

This reverts commit ccf96bf5e673456ec80f72725e4c9afa4e4c5a85.
gdkchan 1 anno fa
parent
commit
062ef43eb4
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/Ryujinx/UI/Windows/MainWindow.axaml.cs

+ 3 - 1
src/Ryujinx/UI/Windows/MainWindow.axaml.cs

@@ -482,7 +482,9 @@ namespace Ryujinx.Ava.UI.Windows
                 LoadApplications();
             }
 
-            CheckLaunchState().Wait();
+#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
+            CheckLaunchState();
+#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
         }
 
         private void SetMainContent(Control content = null)