mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
parent
4d545ed684
commit
3ae9a77f25
5 changed files with 18 additions and 3 deletions
|
@ -80,5 +80,7 @@
|
|||
"settings-skipSplash-desc": "Skips ArmCord splash screen when you start up the app.",
|
||||
"settings-copyDebugInfo": "Copy Debug Info",
|
||||
"settings-copyGPUInfo": "Copy GPU Info",
|
||||
"settings-forceNativeCrash": "Force native crash"
|
||||
"settings-forceNativeCrash": "Force native crash",
|
||||
"settings-smoothScroll": "Use smooth scrolling",
|
||||
"settings-smoothScroll-desc": "Toggle smooth scrolling"
|
||||
}
|
|
@ -127,7 +127,8 @@ export function setup(): void {
|
|||
trayIcon: "default",
|
||||
doneSetup: false,
|
||||
clientName: "ArmCord",
|
||||
customIcon: path.join(import.meta.dirname, "../", "/assets/desktop.png")
|
||||
customIcon: path.join(import.meta.dirname, "../", "/assets/desktop.png"),
|
||||
smoothScroll: true
|
||||
};
|
||||
setConfigBulk({
|
||||
...defaults
|
||||
|
|
|
@ -107,6 +107,9 @@ if (!app.requestSingleInstanceLock()) {
|
|||
checkIfConfigIsBroken();
|
||||
injectElectronFlags();
|
||||
console.log("[Config Manager] Current config: " + fs.readFileSync(getConfigLocation(), "utf-8"));
|
||||
if (getConfig("smoothScroll") === false) {
|
||||
app.commandLine.appendSwitch("disable-smooth-scrolling");
|
||||
}
|
||||
void app.whenReady().then(async () => {
|
||||
// REVIEW - Awaiting the line above will cause a hang at startup
|
||||
if (getConfig("customIcon") !== null) {
|
||||
|
|
|
@ -100,6 +100,14 @@
|
|||
</div>
|
||||
<br />
|
||||
|
||||
<div class="switch acSmoothScroll">
|
||||
<label class="header" data-string="settings-smoothScroll"></label>
|
||||
<input id="smoothScroll" class="tgl tgl-light left" data-setting="smoothScroll" type="checkbox" />
|
||||
<label class="tgl-btn left" for="smoothScroll"></label>
|
||||
<p class="description" data-string="settings-smoothScroll-desc"></p>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<div class="switch acAutogain">
|
||||
<label class="header" data-string="settings-disableAutogain"></label>
|
||||
<input id="disableAutogain" class="tgl tgl-light left" data-setting="disableAutogain" type="checkbox" />
|
||||
|
|
1
src/types/settings.d.ts
vendored
1
src/types/settings.d.ts
vendored
|
@ -28,4 +28,5 @@ export interface Settings {
|
|||
trayIcon: string;
|
||||
doneSetup: boolean;
|
||||
clientName: string;
|
||||
smoothScroll: boolean;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue