mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
plugins: installed subtab - cleanup auto update toggle.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user