Init Sequence: removed a bunch of no longer necessary Settings.isLoaded

This commit is contained in:
ItsLemmy
2025-09-29 09:11:37 -04:00
parent b8b54825d5
commit 9ed9231070
12 changed files with 34 additions and 44 deletions
+1 -1
View File
@@ -16,6 +16,6 @@ Variants {
scaling: ScalingService.getScreenScale(modelData)
// Only activate on enabled screens
active: Settings.isLoaded && modelData && (Settings.data.notifications.monitors.includes(modelData.name) || Settings.data.notifications.monitors.length === 0)
active: modelData && (Settings.data.notifications.monitors.includes(modelData.name) || Settings.data.notifications.monitors.length === 0)
}
}
+1 -1
View File
@@ -128,7 +128,7 @@ Item {
screen: root.screen
readonly property string location: (Settings.isLoaded && Settings.data && Settings.data.notifications && Settings.data.notifications.location) ? Settings.data.notifications.location : "top_right"
readonly property string location: (Settings.data.notifications && Settings.data.notifications.location) ? Settings.data.notifications.location : "top_right"
readonly property bool isTop: (location === "top") || (location.length >= 3 && location.substring(0, 3) === "top")
readonly property bool isBottom: (location === "bottom") || (location.length >= 6 && location.substring(0, 6) === "bottom")
readonly property bool isLeft: location.indexOf("_left") >= 0