1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-08 06:25:37 -05:00

displays: default show on last display to true, always

This commit is contained in:
bbedward
2025-10-22 22:43:58 -04:00
parent 26900c9b62
commit d9d16eccfe

View File

@@ -681,10 +681,14 @@ Item {
description: I18n.tr("Show on all connected displays")
checked: displaysTab.getScreenPreferences(parent.componentId).includes("all")
onToggled: (checked) => {
if (checked)
if (checked) {
displaysTab.setScreenPreferences(parent.componentId, ["all"]);
else
} else {
displaysTab.setScreenPreferences(parent.componentId, []);
if (["dankBar", "dock", "notifications", "osd", "toast"].includes(parent.componentId)) {
displaysTab.setShowOnLastDisplay(parent.componentId, true);
}
}
}
}