1-- | Official Tauri app controls. `exit` requires @tauri-apps/api 2.12.0 or later,
2-- | core:app:allow-exit, and core:app:allow-set-dock-visibility as applicable.
3module Tauri.App (exit, setDockVisibility) where
9import Promise (Promise)
10import Promise.Aff (toAffE)
12-- | Terminate the native application with the supplied process exit code.
13exit :: Int -> Aff Unit
14exit code = toAffE (exitImpl code)
16-- | Show or hide the Dock icon. This is supported by Tauri on macOS only.
17setDockVisibility :: Boolean -> Aff Unit
18setDockVisibility visible = toAffE (setDockVisibilityImpl visible)
20foreign import exitImpl :: Int -> Effect (Promise Unit)
21foreign import setDockVisibilityImpl :: Boolean -> Effect (Promise Unit)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list