mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(settings): cleaning remnants of Settings.data.bar.floating
This commit is contained in:
@@ -20,7 +20,7 @@ SmartPanel {
|
||||
|
||||
readonly property string barDensity: Settings.data.bar.density
|
||||
readonly property string barPosition: Settings.getBarPositionForScreen(screen?.name)
|
||||
readonly property bool barFloating: Settings.data.bar.floating
|
||||
readonly property bool barFloating: Settings.data.bar.barType === "floating"
|
||||
readonly property real barMarginH: barFloating ? Math.ceil(Settings.data.bar.marginHorizontal) : 0
|
||||
readonly property real barMarginV: barFloating ? Math.ceil(Settings.data.bar.marginVertical) : 0
|
||||
|
||||
|
||||
@@ -90,7 +90,6 @@ ColumnLayout {
|
||||
defaultValue: Settings.getDefaultValue("bar.barType")
|
||||
onSelected: key => {
|
||||
Settings.data.bar.barType = key;
|
||||
Settings.data.bar.floating = (key === "floating");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -471,7 +471,6 @@ ColumnLayout {
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
Settings.data.bar.barType = modelData.key;
|
||||
Settings.data.bar.floating = (modelData.key === "floating");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user