mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 15:32:50 -05:00
niri: fix gap reactivity
This commit is contained in:
@@ -66,6 +66,19 @@ Singleton {
|
|||||||
onTriggered: root.doGenerateNiriLayoutConfig()
|
onTriggered: root.doGenerateNiriLayoutConfig()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property int _lastGapValue: -1
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: SettingsData
|
||||||
|
function onBarConfigsChanged() {
|
||||||
|
const newGaps = Math.max(4, (SettingsData.barConfigs[0]?.spacing ?? 4));
|
||||||
|
if (newGaps === root._lastGapValue)
|
||||||
|
return;
|
||||||
|
root._lastGapValue = newGaps;
|
||||||
|
generateNiriLayoutConfig();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: validateProcess
|
id: validateProcess
|
||||||
command: ["niri", "validate"]
|
command: ["niri", "validate"]
|
||||||
|
|||||||
Reference in New Issue
Block a user