This is weird

[ci skip]
This commit is contained in:
Core 2022-09-22 00:26:22 +01:00
parent ef06ab8fd2
commit 38dd440531
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0

View file

@ -1,9 +1,6 @@
import * as ElectronStore from "electron-store";
import { app, ipcMain } from "electron";
import fetch from "electron-fetch";
import { existsSync } from "fs";
import { join } from "path";
import { utils } from "./utils";
export class Store {
static cfg: ElectronStore;
@ -122,7 +119,7 @@ export class Store {
},
audio: {
volume: 1,
volumeStep: 0.05,
volumeStep: 0.01,
maxVolume: 1,
lastVolume: 1,
muted: false,
@ -336,8 +333,4 @@ export class Store {
Store.cfg.store = store;
});
}
private checkLocale(language: string) {
return existsSync(join(utils.getPath("i18nPath"), `${language}.json`)) ? language : "en_US";
}
}