Kaynağa Gözat

fix(macos): windows restore at current workspace

Close #11244
Andelf 1 yıl önce
ebeveyn
işleme
70a3028c80
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      src/electron/electron/window.cljs

+ 4 - 1
src/electron/electron/window.cljs

@@ -112,7 +112,10 @@
   [^js win]
   (when (.isMinimized ^object win)
     (.restore win))
-  (.focus win))
+  ;; Ref: https://github.com/electron/electron/issues/8734
+  (.setVisibleOnAllWorkspaces win true)
+  (.focus win)
+  (.setVisibleOnAllWorkspaces win false))
 
 (defn get-graph-all-windows
   [graph-path] ;; graph-path == dir