Formatted store and settings, added label elements to all inputs in settings, renamed keybinds to keybindings, optimised some code

This commit is contained in:
Core 2022-04-29 17:02:59 +01:00
parent 796a717dca
commit c9a5fc546f
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
4 changed files with 1160 additions and 985 deletions

View file

@ -6,6 +6,7 @@ import {app, dialog, ipcMain, Notification, shell } from "electron";
import fetch from "electron-fetch";
import {AppImageUpdater, NsisUpdater} from "electron-updater";
import * as log from "electron-log";
import ElectronStore from "electron-store";
export class utils {
@ -79,6 +80,14 @@ export class utils {
return Store.cfg.store
}
/**
* Get the store instance
* @returns {Store}
*/
static getStoreInstance(): ElectronStore {
return Store.cfg
}
/**
* Sets a store value
* @param key