refactor: enforce noctalia.getConfig across community plugins

This commit is contained in:
Lemmy
2026-07-15 00:22:44 -04:00
parent 8ab6eef6eb
commit 05820914d3
10 changed files with 131 additions and 19 deletions
+6 -6
View File
@@ -1,11 +1,11 @@
--!nonstrict
local glyph = barWidget.getConfig("glyph")
local color = barWidget.getConfig("color") or "on_surface"
local glyphColor = barWidget.getConfig("glyph_color") or color
local glyph = noctalia.getConfig("glyph")
local color = noctalia.getConfig("color") or "on_surface"
local glyphColor = noctalia.getConfig("glyph_color") or color
local updateError = noctalia.state.get("update_error")
local notifyOnNewUpdates = barWidget.getConfig("notify")
local hideWhenUpToDate = barWidget.getConfig("hide_when_up_to_date")
local click_action = barWidget.getConfig("click_action") or "open_gui"
local notifyOnNewUpdates = noctalia.getConfig("notify")
local hideWhenUpToDate = noctalia.getConfig("hide_when_up_to_date")
local click_action = noctalia.getConfig("click_action") or "open_gui"
local updates = noctalia.state.get("updates") or { Packages = {}, Aur = {}, Flatpak = {} }
local function countUpdates(scopedUpdates)