瀏覽代碼

Add ConfigureAwait(false)

Ruben 8 月之前
父節點
當前提交
0f34a774e5
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/PicView.Avalonia/UI/FunctionsHelper.cs

+ 6 - 6
src/PicView.Avalonia/UI/FunctionsHelper.cs

@@ -348,22 +348,22 @@ public static class FunctionsHelper
 
     public static async Task ChangeCtrlZoom()
     {
-        await SettingsUpdater.ToggleCtrlZoom(Vm);
+        await SettingsUpdater.ToggleCtrlZoom(Vm).ConfigureAwait(false);
     }
 
     public static async Task ToggleLooping()
     {
-        await SettingsUpdater.ToggleLooping(Vm);
+        await SettingsUpdater.ToggleLooping(Vm).ConfigureAwait(false);
     }
     
     public static async Task ToggleInterface()
     {
-        await HideInterfaceLogic.ToggleUI(Vm);
+        await HideInterfaceLogic.ToggleUI(Vm).ConfigureAwait(false);
     }
     
     public static async Task ToggleSubdirectories()
     {
-        await SettingsUpdater.ToggleSubdirectories(vm: Vm);
+        await SettingsUpdater.ToggleSubdirectories(vm: Vm).ConfigureAwait(false);
     }
     
     public static async Task ToggleBottomToolbar()
@@ -372,12 +372,12 @@ public static class FunctionsHelper
         {
             return;
         }
-        await HideInterfaceLogic.ToggleBottomToolbar(Vm);
+        await HideInterfaceLogic.ToggleBottomToolbar(Vm).ConfigureAwait(false);
     }
     
     public static async Task ToggleTaskbarProgress()
     {
-        await SettingsUpdater.ToggleTaskbarProgress(Vm);
+        await SettingsUpdater.ToggleTaskbarProgress(Vm).ConfigureAwait(false);
     }
     
     #endregion