mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-14 23:34:01 -04:00
32 lines
784 B
QML
32 lines
784 B
QML
import QtQuick
|
|
import qs.Common
|
|
import qs.Modules.Settings.Widgets
|
|
|
|
Column {
|
|
id: root
|
|
|
|
property var page: null
|
|
|
|
width: parent?.width ?? 0
|
|
spacing: Theme.spacingL
|
|
|
|
SettingsCard {
|
|
settingKey: "barWidgetSystemUpdate"
|
|
|
|
SettingsToggleRow {
|
|
resetStore: root.page
|
|
resetKeys: ["hideWhenIdle"]
|
|
text: I18n.tr("Hide when no updates")
|
|
checked: root.page.value("hideWhenIdle")
|
|
onToggled: checked => root.page.set("hideWhenIdle", checked)
|
|
}
|
|
|
|
SettingsNavRow {
|
|
iconName: "system_update_alt"
|
|
title: I18n.tr("Software updates")
|
|
hint: I18n.tr("DMS and system updates")
|
|
onClicked: root.page.parentModal?.navigateTo("updater")
|
|
}
|
|
}
|
|
}
|