瀏覽代碼

Fix bug 0019653: 【工作站】打开科学分析界面,在任务栏里点击fis.exe,再点击全部关闭,再次点击科学分析,不能打开页面

jimmy.jiang@vinno.com 8 月之前
父節點
當前提交
34c10ef600
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 1 1
      fis/Managers/AppManager.cs
  2. 6 0
      fis/SlaveWindow.axaml.cs

+ 1 - 1
fis/Managers/AppManager.cs

@@ -145,7 +145,7 @@ namespace fis.Managers
         /// </summary>
         public static bool IsSlaveWindow { get; set; } = false;
 
-        public static bool IsVStation => true;
+        public static bool IsVStation { get; set; } = false;
 
         /// <summary>
         /// Current vCloud is cart system or not

+ 6 - 0
fis/SlaveWindow.axaml.cs

@@ -318,10 +318,16 @@ namespace fis
                     ShowActivated = true;
                     Logger.WriteShellLog("ShowInTaskbar end");
                 }
+
                 Show();
                 _isRoutedOnSecondWindow = true;
                 Topmost = true;
                 Topmost = false;///窗口置顶一下,再取消置顶,让Window处于正上方
+                if (AppManager.IsVStation)
+                {
+                    Logger.WriteShellLog("ShowInTaskbar cancelled");
+                    ShowInTaskbar = false;
+                }
                 Logger.WriteShellLog("slave show end");
             });