Autoformat
This commit is contained in:
parent
f19eaf689b
commit
6deb039906
2 changed files with 19 additions and 20 deletions
|
|
@ -13,8 +13,6 @@ NPanel {
|
||||||
panelHeight: 500 * scaling
|
panelHeight: 500 * scaling
|
||||||
panelAnchorRight: true
|
panelAnchorRight: true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
panelContent: Rectangle {
|
panelContent: Rectangle {
|
||||||
color: Color.mSurface
|
color: Color.mSurface
|
||||||
radius: Style.radiusL * scaling
|
radius: Style.radiusL * scaling
|
||||||
|
|
@ -70,7 +68,8 @@ NPanel {
|
||||||
|
|
||||||
// Update summary (only show when packages are available)
|
// Update summary (only show when packages are available)
|
||||||
NText {
|
NText {
|
||||||
visible: !ArchUpdaterService.updateInProgress && !ArchUpdaterService.updateFailed && !ArchUpdaterService.aurBusy && ArchUpdaterService.totalUpdates > 0
|
visible: !ArchUpdaterService.updateInProgress && !ArchUpdaterService.updateFailed && !ArchUpdaterService.aurBusy
|
||||||
|
&& ArchUpdaterService.totalUpdates > 0
|
||||||
text: ArchUpdaterService.totalUpdates + " package" + (ArchUpdaterService.totalUpdates !== 1 ? "s" : "") + " can be updated"
|
text: ArchUpdaterService.totalUpdates + " package" + (ArchUpdaterService.totalUpdates !== 1 ? "s" : "") + " can be updated"
|
||||||
font.pointSize: Style.fontSizeL * scaling
|
font.pointSize: Style.fontSizeL * scaling
|
||||||
font.weight: Style.fontWeightMedium
|
font.weight: Style.fontWeightMedium
|
||||||
|
|
@ -80,7 +79,8 @@ NPanel {
|
||||||
|
|
||||||
// Package selection info (only show when not updating and have packages)
|
// Package selection info (only show when not updating and have packages)
|
||||||
NText {
|
NText {
|
||||||
visible: !ArchUpdaterService.updateInProgress && !ArchUpdaterService.updateFailed && !ArchUpdaterService.aurBusy && ArchUpdaterService.totalUpdates > 0
|
visible: !ArchUpdaterService.updateInProgress && !ArchUpdaterService.updateFailed && !ArchUpdaterService.aurBusy
|
||||||
|
&& ArchUpdaterService.totalUpdates > 0
|
||||||
text: ArchUpdaterService.selectedPackagesCount + " of " + ArchUpdaterService.totalUpdates + " packages selected"
|
text: ArchUpdaterService.selectedPackagesCount + " of " + ArchUpdaterService.totalUpdates + " packages selected"
|
||||||
font.pointSize: Style.fontSizeS * scaling
|
font.pointSize: Style.fontSizeS * scaling
|
||||||
color: Color.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
|
|
@ -181,7 +181,8 @@ NPanel {
|
||||||
Item {
|
Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
visible: !ArchUpdaterService.updateInProgress && !ArchUpdaterService.updateFailed && !ArchUpdaterService.aurBusy && ArchUpdaterService.totalUpdates === 0
|
visible: !ArchUpdaterService.updateInProgress && !ArchUpdaterService.updateFailed && !ArchUpdaterService.aurBusy
|
||||||
|
&& ArchUpdaterService.totalUpdates === 0
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
@ -217,8 +218,7 @@ NPanel {
|
||||||
Item {
|
Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
visible: ArchUpdaterService.aurBusy && !ArchUpdaterService.updateInProgress
|
visible: ArchUpdaterService.aurBusy && !ArchUpdaterService.updateInProgress && !ArchUpdaterService.updateFailed
|
||||||
&& !ArchUpdaterService.updateFailed
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
@ -251,7 +251,8 @@ NPanel {
|
||||||
|
|
||||||
// Package list (only show when not in any special state)
|
// Package list (only show when not in any special state)
|
||||||
NBox {
|
NBox {
|
||||||
visible: !ArchUpdaterService.updateInProgress && !ArchUpdaterService.updateFailed && !ArchUpdaterService.aurBusy && ArchUpdaterService.totalUpdates > 0
|
visible: !ArchUpdaterService.updateInProgress && !ArchUpdaterService.updateFailed && !ArchUpdaterService.aurBusy
|
||||||
|
&& ArchUpdaterService.totalUpdates > 0
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
||||||
|
|
@ -344,8 +345,7 @@ NPanel {
|
||||||
|
|
||||||
NIconButton {
|
NIconButton {
|
||||||
icon: "refresh"
|
icon: "refresh"
|
||||||
tooltipText: ArchUpdaterService.aurBusy ? "Checking for updates..." :
|
tooltipText: ArchUpdaterService.aurBusy ? "Checking for updates..." : (!ArchUpdaterService.canPoll ? "Refresh available soon" : "Refresh package lists")
|
||||||
(!ArchUpdaterService.canPoll ? "Refresh available soon" : "Refresh package lists")
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
ArchUpdaterService.forceRefresh()
|
ArchUpdaterService.forceRefresh()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -224,8 +224,6 @@ Singleton {
|
||||||
// PACKAGE CHECKING PROCESSES
|
// PACKAGE CHECKING PROCESSES
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Process for checking all updates with AUR helper (repo + AUR)
|
// Process for checking all updates with AUR helper (repo + AUR)
|
||||||
Process {
|
Process {
|
||||||
id: checkAurUpdatesProcess
|
id: checkAurUpdatesProcess
|
||||||
|
|
@ -260,7 +258,8 @@ Singleton {
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
parseAllUpdatesOutput(allUpdatesOutput, text)
|
parseAllUpdatesOutput(allUpdatesOutput, text)
|
||||||
Logger.log("ArchUpdater", "found", repoPackages.length, "repo package(s) and", aurPackages.length, "AUR package(s) to upgrade")
|
Logger.log("ArchUpdater", "found", repoPackages.length, "repo package(s) and", aurPackages.length,
|
||||||
|
"AUR package(s) to upgrade")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue