Browse Source

Add settings conditionn

Ruben 3 months ago
parent
commit
03d98a7364
1 changed files with 1 additions and 1 deletions
  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 (!ProcessHelper.CheckIfAnotherInstanceIsRunning())
+            if (Settings.UIProperties.OpenInSameWindow && !ProcessHelper.CheckIfAnotherInstanceIsRunning())
             {
                 // No other instance is running, create named pipe server
                 _ = IPC.StartListeningForArguments(vm);