mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-14 15:24:00 -04:00
display: merge missing hyprland fields into existing session entries
fixes #3221
This commit is contained in:
@@ -1000,15 +1000,15 @@ Singleton {
|
||||
if (!settings)
|
||||
continue;
|
||||
|
||||
if (current[outputName])
|
||||
continue;
|
||||
|
||||
const entry = {};
|
||||
const entry = current[outputName] ?? {};
|
||||
let imported = false;
|
||||
for (const field of importedFields) {
|
||||
if (settings[field] !== undefined)
|
||||
entry[field] = settings[field];
|
||||
if (settings[field] === undefined || entry[field] !== undefined)
|
||||
continue;
|
||||
entry[field] = settings[field];
|
||||
imported = true;
|
||||
}
|
||||
if (Object.keys(entry).length === 0)
|
||||
if (!imported)
|
||||
continue;
|
||||
|
||||
current[outputName] = entry;
|
||||
|
||||
Reference in New Issue
Block a user