plugins: added auto-update via a new setting on the installed subtab.

This commit is contained in:
Lemmy
2026-02-06 17:00:22 -05:00
parent 72168bb47a
commit af2e3d207a
24 changed files with 189 additions and 60 deletions
@@ -32,6 +32,37 @@ ColumnLayout {
}
}
// Auto-update toggle
RowLayout {
spacing: Style.marginM
Layout.fillWidth: true
ColumnLayout {
spacing: Style.marginXS
Layout.fillWidth: true
NText {
text: I18n.tr("panels.plugins.auto-update")
color: Color.mOnSurface
}
NText {
text: I18n.tr("panels.plugins.auto-update-description")
font.pointSize: Style.fontSizeXS
color: Color.mOnSurfaceVariant
wrapMode: Text.WordWrap
Layout.fillWidth: true
}
}
NToggle {
checked: Settings.data.plugins.autoUpdate
onToggled: checked => {
Settings.data.plugins.autoUpdate = checked;
}
}
}
// Update All button
NButton {
property int updateCount: Object.keys(PluginService.pluginUpdates).length