From 38dd440531f2c42f4cdc251207f10ddf14436198 Mon Sep 17 00:00:00 2001 From: Core Date: Thu, 22 Sep 2022 00:26:22 +0100 Subject: [PATCH] This is weird [ci skip] --- src/main/base/store.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/base/store.ts b/src/main/base/store.ts index f0ea4d16..bb6383c8 100644 --- a/src/main/base/store.ts +++ b/src/main/base/store.ts @@ -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"; - } }