mirror of
https://github.com/logseq/logseq.git
synced 2026-05-29 15:09:41 +00:00
feat: add "Always on Top" in window menu.
This commit is contained in:
@@ -206,11 +206,19 @@
|
||||
{:role "editMenu"}
|
||||
{:role "viewMenu"}
|
||||
{:role "windowMenu"
|
||||
:submenu (when-not mac? [{:role "minimize"}
|
||||
{:role "zoom"}
|
||||
;; Disable Control+W shortcut
|
||||
{:role "close"
|
||||
:accelerator false}])})
|
||||
:submenu
|
||||
(concat
|
||||
(when-not mac?
|
||||
[{:role "minimize"}
|
||||
{:role "zoom"}
|
||||
;; Disable Control+W shortcut
|
||||
{:role "close"
|
||||
:accelerator false}])
|
||||
[{:label "Always on Top"
|
||||
:type "checkbox"
|
||||
:click (fn [menuItem browserWindow]
|
||||
;; switch alwaysOnTop state
|
||||
(.setAlwaysOnTop browserWindow (.-checked menuItem)))}])})
|
||||
;; Windows has no about role
|
||||
template (conj template
|
||||
(if mac?
|
||||
|
||||
Reference in New Issue
Block a user