Formatted store and settings, added label elements to all inputs in settings, renamed keybinds to keybindings, optimised some code
This commit is contained in:
parent
796a717dca
commit
c9a5fc546f
4 changed files with 1160 additions and 985 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue