save auto-launch option, disable shortcuts in settings

This commit is contained in:
Anton Bracke
2022-02-22 14:00:17 +01:00
parent 71c8e32b2f
commit 3f21befdc6
7 changed files with 66 additions and 36 deletions
@@ -12,7 +12,8 @@ const api: WorkAdventureLocalAppApi = {
removeServer: (serverId) => ipcRenderer.invoke("local-app:removeServer", serverId),
reloadShortcuts: () => ipcRenderer.invoke("local-app:reloadShortcuts"),
getSettings: () => ipcRenderer.invoke("local-app:getSettings"),
saveSetting: (key, value) => ipcRenderer.invoke("local-app:setSetting", key, value),
saveSetting: (key, value) => ipcRenderer.invoke("local-app:saveSetting", key, value),
setShortcutsEnabled: (enabled) => ipcRenderer.invoke("local-app:setShortcutsEnabled", enabled),
};
contextBridge.exposeInMainWorld("WorkAdventureDesktopApi", api);