This is weird
[ci skip]
This commit is contained in:
parent
ef06ab8fd2
commit
38dd440531
1 changed files with 1 additions and 8 deletions
|
@ -1,9 +1,6 @@
|
||||||
import * as ElectronStore from "electron-store";
|
import * as ElectronStore from "electron-store";
|
||||||
import { app, ipcMain } from "electron";
|
import { app, ipcMain } from "electron";
|
||||||
import fetch from "electron-fetch";
|
import fetch from "electron-fetch";
|
||||||
import { existsSync } from "fs";
|
|
||||||
import { join } from "path";
|
|
||||||
import { utils } from "./utils";
|
|
||||||
|
|
||||||
export class Store {
|
export class Store {
|
||||||
static cfg: ElectronStore;
|
static cfg: ElectronStore;
|
||||||
|
@ -122,7 +119,7 @@ export class Store {
|
||||||
},
|
},
|
||||||
audio: {
|
audio: {
|
||||||
volume: 1,
|
volume: 1,
|
||||||
volumeStep: 0.05,
|
volumeStep: 0.01,
|
||||||
maxVolume: 1,
|
maxVolume: 1,
|
||||||
lastVolume: 1,
|
lastVolume: 1,
|
||||||
muted: false,
|
muted: false,
|
||||||
|
@ -336,8 +333,4 @@ export class Store {
|
||||||
Store.cfg.store = store;
|
Store.cfg.store = store;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private checkLocale(language: string) {
|
|
||||||
return existsSync(join(utils.getPath("i18nPath"), `${language}.json`)) ? language : "en_US";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue