mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 23:42:51 -05:00
displays: default show on last display to true, always
This commit is contained in:
@@ -681,10 +681,14 @@ Item {
|
|||||||
description: I18n.tr("Show on all connected displays")
|
description: I18n.tr("Show on all connected displays")
|
||||||
checked: displaysTab.getScreenPreferences(parent.componentId).includes("all")
|
checked: displaysTab.getScreenPreferences(parent.componentId).includes("all")
|
||||||
onToggled: (checked) => {
|
onToggled: (checked) => {
|
||||||
if (checked)
|
if (checked) {
|
||||||
displaysTab.setScreenPreferences(parent.componentId, ["all"]);
|
displaysTab.setScreenPreferences(parent.componentId, ["all"]);
|
||||||
else
|
} else {
|
||||||
displaysTab.setScreenPreferences(parent.componentId, []);
|
displaysTab.setScreenPreferences(parent.componentId, []);
|
||||||
|
if (["dankBar", "dock", "notifications", "osd", "toast"].includes(parent.componentId)) {
|
||||||
|
displaysTab.setShowOnLastDisplay(parent.componentId, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user