mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2025-12-05 22:26:16 +00:00
Fix toasts
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user