Browse Source

Fix wrong function call

Ruben 7 months ago
parent
commit
77a059fcf2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/PicView.Avalonia/ViewModels/MainViewModel.cs

+ 3 - 3
src/PicView.Avalonia/ViewModels/MainViewModel.cs

@@ -67,7 +67,7 @@ public class MainViewModel : ViewModelBase
 
 
         PreviousCommand = ReactiveCommand.Create(() => { Task.Run(FunctionsHelper.Prev); });
         PreviousCommand = ReactiveCommand.Create(() => { Task.Run(FunctionsHelper.Prev); });
 
 
-        PreviousButtonCommand = ReactiveCommand.Create(()  => { UIHelper.PreviousButtonNavigation(this); });
+        PreviousButtonCommand = ReactiveCommand.Create(() => { UIHelper.PreviousButtonNavigation(this); });
 
 
         PreviousArrowButtonCommand = ReactiveCommand.Create(() => { UIHelper.PreviousArrowButtonNavigation(this); });
         PreviousArrowButtonCommand = ReactiveCommand.Create(() => { UIHelper.PreviousArrowButtonNavigation(this); });
 
 
@@ -1485,7 +1485,7 @@ public class MainViewModel : ViewModelBase
 
 
     private async Task CutFileTask(string path) => await ClipboardHelper.CutFile(path, this);
     private async Task CutFileTask(string path) => await ClipboardHelper.CutFile(path, this);
 
 
-    private async Task DeleteFileTask(string path) =>
+    private static async Task DeleteFileTask(string path) =>
         await Task.Run(() => FileDeletionHelper.DeleteFileWithErrorMsg(path, false));
         await Task.Run(() => FileDeletionHelper.DeleteFileWithErrorMsg(path, false));
 
 
     private static async Task RecycleFileTask(string path) =>
     private static async Task RecycleFileTask(string path) =>
@@ -1499,7 +1499,7 @@ public class MainViewModel : ViewModelBase
 
 
     private async Task PrintTask(string path) => await FileManager.Print(path, this).ConfigureAwait(false);
     private async Task PrintTask(string path) => await FileManager.Print(path, this).ConfigureAwait(false);
 
 
-    private async Task OpenWithTask(string path) => await FileManager.Print(path, this).ConfigureAwait(false);
+    private async Task OpenWithTask(string path) => await FileManager.OpenWith(path, this).ConfigureAwait(false);
 
 
     private async Task LocateOnDiskTask(string path) =>
     private async Task LocateOnDiskTask(string path) =>
         await FileManager.LocateOnDisk(path, this).ConfigureAwait(false);
         await FileManager.LocateOnDisk(path, this).ConfigureAwait(false);