mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
Merge branch 'end-4:main' into main
This commit is contained in:
@@ -573,6 +573,7 @@ Singleton {
|
||||
}
|
||||
|
||||
property JsonObject updates: JsonObject {
|
||||
property bool enableCheck: true
|
||||
property int checkInterval: 120 // minutes
|
||||
property int adviseUpdateThreshold: 75 // packages
|
||||
property int stronglyAdviseUpdateThreshold: 200 // packages
|
||||
|
||||
@@ -238,7 +238,7 @@ Scope {
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
ColumnLayout {
|
||||
anchors {
|
||||
top: contentColumn.bottom
|
||||
topMargin: 10
|
||||
@@ -247,19 +247,22 @@ Scope {
|
||||
spacing: 10
|
||||
|
||||
Loader {
|
||||
active: SessionWarnings.packageManagerRunning
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
active: SessionWarnings.downloadRunning
|
||||
visible: active
|
||||
sourceComponent: DescriptionLabel {
|
||||
text: Translation.tr("Your package manager is running")
|
||||
text: Translation.tr("There might be a download in progress. Check your Downloads folder.")
|
||||
textColor: Appearance.m3colors.m3onErrorContainer
|
||||
color: Appearance.m3colors.m3errorContainer
|
||||
}
|
||||
}
|
||||
|
||||
Loader {
|
||||
active: SessionWarnings.downloadRunning
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
active: SessionWarnings.packageManagerRunning
|
||||
visible: active
|
||||
sourceComponent: DescriptionLabel {
|
||||
text: Translation.tr("There might be a download in progress")
|
||||
text: Translation.tr("Your package manager is running")
|
||||
textColor: Appearance.m3colors.m3onErrorContainer
|
||||
color: Appearance.m3colors.m3errorContainer
|
||||
}
|
||||
|
||||
@@ -203,6 +203,32 @@ ContentPage {
|
||||
}
|
||||
}
|
||||
|
||||
// There's no update indicator in ii for now so we shouldn't show this yet
|
||||
// ContentSection {
|
||||
// icon: "deployed_code_update"
|
||||
// title: Translation.tr("System updates (Arch only)")
|
||||
|
||||
// ConfigSwitch {
|
||||
// text: Translation.tr("Enable update checks")
|
||||
// checked: Config.options.updates.enableCheck
|
||||
// onCheckedChanged: {
|
||||
// Config.options.updates.enableCheck = checked;
|
||||
// }
|
||||
// }
|
||||
|
||||
// ConfigSpinBox {
|
||||
// icon: "av_timer"
|
||||
// text: Translation.tr("Check interval (mins)")
|
||||
// value: Config.options.updates.checkInterval
|
||||
// from: 60
|
||||
// to: 1440
|
||||
// stepSize: 60
|
||||
// onValueChanged: {
|
||||
// Config.options.updates.checkInterval = value;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
ContentSection {
|
||||
icon: "weather_mix"
|
||||
title: Translation.tr("Weather")
|
||||
|
||||
@@ -36,7 +36,6 @@ PanelWindow {
|
||||
Window
|
||||
}
|
||||
|
||||
signal closed
|
||||
function close() {
|
||||
root.closed();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ Singleton {
|
||||
Timer {
|
||||
interval: Config.options.updates.checkInterval * 60 * 1000
|
||||
repeat: true
|
||||
running: Config.ready
|
||||
running: Config.ready && Config.options.updates.enableCheck
|
||||
onTriggered: {
|
||||
print("[Updates] Periodic update check due")
|
||||
root.refresh();
|
||||
@@ -38,7 +38,7 @@ Singleton {
|
||||
|
||||
Process {
|
||||
id: checkAvailabilityProc
|
||||
running: true
|
||||
running: Config.ready && Config.options.updates.enableCheck
|
||||
command: ["which", "checkupdates"]
|
||||
onExited: (exitCode, exitStatus) => {
|
||||
root.available = (exitCode === 0);
|
||||
|
||||
Reference in New Issue
Block a user