preset: gate cleanup modules behind hyprland.check

parent 59a092a5
......@@ -207,7 +207,11 @@ func processHyprModules(manager *hyprland.HyprlandManager, prof config.PresetPro
}
}
func processCleanupModules(manager *hyprland.HyprlandManager, opts opOptions, res *Result) {
func processCleanupModules(manager *hyprland.HyprlandManager, prof config.PresetProfile, opts opOptions, res *Result) {
if !prof.Hyprland.Check {
return
}
cat := "hypr/" + locale.T("cleanup")
for _, info := range manager.GetModulesList("all") {
......@@ -360,7 +364,7 @@ func processProfile(prof config.PresetProfile, opts opOptions, res *Result, mana
if manager != nil {
processHyprVars(manager, prof, opts, res)
processHyprModules(manager, prof, opts, res)
processCleanupModules(manager, opts, res)
processCleanupModules(manager, prof, opts, res)
processHyprLayoutSync(manager, prof, opts, res)
processVerifyModules(manager, prof, opts, res)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment