diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-03-29 18:19:39 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-05-16 00:54:56 +0200 |
commit | a35d560f8d1ca414e3ba387b50731ca099e2da47 (patch) | |
tree | 5a8a90345c04eb0b69ea3fca8185641e26905b5d /packages/main/src/stores/MainEnv.ts | |
parent | feat: New window banner (diff) | |
download | sophie-a35d560f8d1ca414e3ba387b50731ca099e2da47.tar.gz sophie-a35d560f8d1ca414e3ba387b50731ca099e2da47.tar.zst sophie-a35d560f8d1ca414e3ba387b50731ca099e2da47.zip |
feat: Add custom menubar
The menu is populated reactive from the store with no caching.
This doesn't seem to cause any performance problems so far.
Currently the menu is electron-specific.
In the future, we'll need a more runtime-independent way to build the
menu.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/main/src/stores/MainEnv.ts')
-rw-r--r-- | packages/main/src/stores/MainEnv.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/main/src/stores/MainEnv.ts b/packages/main/src/stores/MainEnv.ts index 94c34f3..8923322 100644 --- a/packages/main/src/stores/MainEnv.ts +++ b/packages/main/src/stores/MainEnv.ts | |||
@@ -26,4 +26,6 @@ export function getEnv(model: IAnyStateTreeNode): MainEnv { | |||
26 | 26 | ||
27 | export default interface MainEnv { | 27 | export default interface MainEnv { |
28 | openURLInExternalBrowser(url: string): void; | 28 | openURLInExternalBrowser(url: string): void; |
29 | |||
30 | openAboutDialog(): void; | ||
29 | } | 31 | } |