Fix toasts

This commit is contained in:
2025-11-23 14:28:49 +01:00
parent aa4ee099e8
commit ec217df778

View File

@@ -134,7 +134,11 @@ Item {
screen: root.screen
// Parse location setting
readonly property string location: Settings.data.notifications?.location || "top_right"
readonly property string location: {
if (Settings.data.notifications?.location == "bar")
return "top_right"
return Settings.data.notifications?.location || "top_right"
}
readonly property bool isTop: location.startsWith("top")
readonly property bool isBottom: location.startsWith("bottom")
readonly property bool isLeft: location.endsWith("_left")