fix(anilist): open plugin settings via noctalia.openSettings() (#118)

* fix(anilist): open plugin settings via noctalia.openSettings()

Require plugin API 15 and replace the settings-open plugins shell workaround.

* fix(anilist): Correct author name capitalization

* chore(anilist): bump version
This commit is contained in:
Cleboost
2026-07-28 21:13:10 -04:00
committed by GitHub
parent 485e560667
commit 66f655a89e
3 changed files with 15 additions and 10 deletions
+11 -6
View File
@@ -220,11 +220,20 @@ local function filterButton(key, label, filter)
})
end
local function settingsButton()
return ui.button({
glyph = "settings",
variant = "ghost",
tooltip = tr("settings"),
onClick = noctalia.openSettings,
})
end
local function renderLogin()
local children = {
ui.row({ align = "center", justify = "space_between", gap = 8 }, {
ui.label({ text = tr("login_title"), fontSize = 18, fontWeight = "bold", flexGrow = 1 }),
ui.button({ glyph = "settings", variant = "ghost", tooltip = tr("settings"), onClick = "onOpenSettings" }),
settingsButton(),
ui.button({ glyph = "close", variant = "ghost", tooltip = tr("close"), onClick = "onClosePanel" }),
}),
ui.label({ text = tr("login_help"), fontSize = 12, color = "on_surface_variant", maxLines = 8 }),
@@ -530,7 +539,7 @@ local function renderLibrary()
table.insert(children, ui.row({ align = "center", justify = "space_between", gap = 8 }, {
ui.column({ gap = 2, flexGrow = 1 }, headerChildren),
ui.button({ glyph = "settings", variant = "ghost", tooltip = tr("settings"), onClick = "onOpenSettings" }),
settingsButton(),
ui.button({ glyph = "refresh", variant = "ghost", tooltip = tr("refresh"), onClick = "onRefresh" }),
ui.button({ glyph = "logout", variant = "ghost", tooltip = tr("logout"), onClick = "onLogout" }),
ui.button({ glyph = "close", variant = "ghost", tooltip = tr("close"), onClick = "onClosePanel" }),
@@ -683,10 +692,6 @@ end
function onNoop() end
function onOpenSettings()
noctalia.runAsync("noctalia msg settings-open plugins")
end
function onConnect()
sendCommand("start_oauth")
dirty = true