Ruben 3 месяцев назад
Родитель
Сommit
03d98a7364
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/PicView.Avalonia/StartUp/StartUpHelper.cs

+ 1 - 1
src/PicView.Avalonia/StartUp/StartUpHelper.cs

@@ -165,7 +165,7 @@ public static class StartUpHelper
 
 
         if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
         if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
         {
         {
-            if (!ProcessHelper.CheckIfAnotherInstanceIsRunning())
+            if (Settings.UIProperties.OpenInSameWindow && !ProcessHelper.CheckIfAnotherInstanceIsRunning())
             {
             {
                 // No other instance is running, create named pipe server
                 // No other instance is running, create named pipe server
                 _ = IPC.StartListeningForArguments(vm);
                 _ = IPC.StartListeningForArguments(vm);