plugins: installed subtab - cleanup auto update toggle.

This commit is contained in:
Lemmy
2026-02-09 14:02:21 -05:00
parent ef95b3128a
commit 8b43787ef5
2 changed files with 15 additions and 31 deletions
+9
View File
@@ -1249,6 +1249,15 @@
"subTab": 1,
"subTabLabel": "common.available"
},
{
"labelKey": "panels.plugins.auto-update",
"descriptionKey": "panels.plugins.auto-update-description",
"widget": "NToggle",
"tab": 18,
"tabLabel": "panels.plugins.title",
"subTab": 0,
"subTabLabel": "common.installed"
},
{
"labelKey": "panels.plugins.installed-no-plugins-label",
"descriptionKey": "panels.plugins.installed-no-plugins-description",
@@ -33,34 +33,11 @@ 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;
}
}
NToggle {
label: I18n.tr("panels.plugins.auto-update")
description: I18n.tr("panels.plugins.auto-update-description")
checked: Settings.data.plugins.autoUpdate
onToggled: checked => Settings.data.plugins.autoUpdate = checked
}
// Check for updates button
@@ -72,9 +49,7 @@ ColumnLayout {
enabled: !isChecking
visible: Object.keys(PluginService.pluginUpdates).length === 0
Layout.fillWidth: true
onClicked: {
PluginService.checkForUpdates();
}
onClicked: PluginService.checkForUpdates()
}
// Update All button