mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-07 19:59:14 -04:00
fix(settings): surface Windows Rules Tab for Hyprland
- small hyprland parser update
This commit is contained in:
@@ -799,11 +799,7 @@ func (p *HyprlandWritableProvider) loadDMSRulesFromLua(data []byte, rulesPath st
|
||||
Actions: *acts,
|
||||
}
|
||||
if wr.ID == "" {
|
||||
if wr.MatchCriteria.AppID != "" {
|
||||
wr.ID = wr.MatchCriteria.AppID
|
||||
} else {
|
||||
wr.ID = wr.MatchCriteria.Title
|
||||
}
|
||||
wr.ID = fmt.Sprintf("dms_rule_%d", len(rules))
|
||||
}
|
||||
rules = append(rules, wr)
|
||||
}
|
||||
|
||||
@@ -311,7 +311,7 @@ Rectangle {
|
||||
"text": I18n.tr("Window Rules"),
|
||||
"icon": "select_window",
|
||||
"tabIndex": 28,
|
||||
"niriOnly": true
|
||||
"hyprlandNiriOnly": true
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user