From 3989c7f801fd09bc2aeee4119699a2b5abd83281 Mon Sep 17 00:00:00 2001 From: purian23 Date: Mon, 11 May 2026 11:25:15 -0400 Subject: [PATCH] fix(DisplayConfigState): Repair crash introduced in Automatic configs PR --- .../Settings/DisplayConfig/DisplayConfigState.qml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/quickshell/Modules/Settings/DisplayConfig/DisplayConfigState.qml b/quickshell/Modules/Settings/DisplayConfig/DisplayConfigState.qml index ca41355a..03defefd 100644 --- a/quickshell/Modules/Settings/DisplayConfig/DisplayConfigState.qml +++ b/quickshell/Modules/Settings/DisplayConfig/DisplayConfigState.qml @@ -266,8 +266,7 @@ Singleton { const fp = outputSetFingerprint(outputIdentifiers); let hash = 0; for (let i = 0; i < fp.length; i++) { - const char = fp.charCodeAt(i); - hash = ((hash << 5) - hash) + char; + hash = ((hash << 5) - hash) + fp.charCodeAt(i); } const hashStr = (hash >>> 0).toString(16); return "auto_" + hashStr; @@ -1034,7 +1033,12 @@ Singleton { result[name] = { "name": name, "disabled": true, - "logical": { "x": 0, "y": 0, "scale": 1.0, "transform": "Normal" } + "logical": { + "x": 0, + "y": 0, + "scale": 1.0, + "transform": "Normal" + } }; continue; } @@ -2022,7 +2026,9 @@ Singleton { function confirmChanges(profileId) { const outputConfigs = buildCurrentOutputConfigs(); - lastAppliedEntry = { outputs: outputConfigs }; + lastAppliedEntry = { + outputs: outputConfigs + }; if (profileId) { readMonitorsJson(data => {