diff options
author | Balaji Vijayakumar <kuttibalaji.v6@gmail.com> | 2022-11-03 19:45:39 +0530 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2022-11-03 21:07:26 +0530 |
commit | 44d15fecc08b349411af32914d735a9c9bf54b6e (patch) | |
tree | 16fd08b7dcdf7825b52977aa39b8a1e93d71d291 /src | |
parent | Upgrade 'electron' to '21.2.2' (diff) | |
download | ferdium-app-44d15fecc08b349411af32914d735a9c9bf54b6e.tar.gz ferdium-app-44d15fecc08b349411af32914d735a9c9bf54b6e.tar.zst ferdium-app-44d15fecc08b349411af32914d735a9c9bf54b6e.zip |
fix: fix contextMenu not visible
Diffstat (limited to 'src')
-rw-r--r-- | src/webview/recipe.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/webview/recipe.ts b/src/webview/recipe.ts index 887d9c367..9ce52d844 100644 --- a/src/webview/recipe.ts +++ b/src/webview/recipe.ts | |||
@@ -43,6 +43,7 @@ import { | |||
43 | switchDict, | 43 | switchDict, |
44 | } from './spellchecker'; | 44 | } from './spellchecker'; |
45 | 45 | ||
46 | import { DEFAULT_APP_SETTINGS } from '../config'; | ||
46 | import { ifUndefinedString } from '../jsUtils'; | 47 | import { ifUndefinedString } from '../jsUtils'; |
47 | import { AppStore } from '../@types/stores.types'; | 48 | import { AppStore } from '../@types/stores.types'; |
48 | import Service from '../models/Service'; | 49 | import Service from '../models/Service'; |
@@ -131,13 +132,19 @@ ipcRenderer.sendToHost( | |||
131 | ); | 132 | ); |
132 | 133 | ||
133 | class RecipeController { | 134 | class RecipeController { |
134 | // @ts-ignore | ||
135 | @observable settings: { | 135 | @observable settings: { |
136 | overrideSpellcheckerLanguage: boolean; | 136 | overrideSpellcheckerLanguage: boolean; |
137 | app: AppStore; | 137 | app: AppStore; |
138 | service: Service; | 138 | service: Service; |
139 | } = { | 139 | } = { |
140 | overrideSpellcheckerLanguage: false, | 140 | overrideSpellcheckerLanguage: false, |
141 | // @ts-ignore | ||
142 | app: DEFAULT_APP_SETTINGS, | ||
143 | // @ts-ignore | ||
144 | service: { | ||
145 | isDarkModeEnabled: false, | ||
146 | spellcheckerLanguage: '', | ||
147 | }, | ||
141 | }; | 148 | }; |
142 | 149 | ||
143 | ipcEvents = { | 150 | ipcEvents = { |