restore the fun easter egg when not archbased since it can be enabled when it's not
This commit is contained in:
parent
1d625ac098
commit
f85bdfead9
2 changed files with 2 additions and 2 deletions
|
|
@ -123,7 +123,6 @@ Singleton {
|
||||||
property bool showActiveWindowIcon: true
|
property bool showActiveWindowIcon: true
|
||||||
property bool alwaysShowBatteryPercentage: false
|
property bool alwaysShowBatteryPercentage: false
|
||||||
property real backgroundOpacity: 1.0
|
property real backgroundOpacity: 1.0
|
||||||
property bool showArchUpdater: true
|
|
||||||
property list<string> monitors: []
|
property list<string> monitors: []
|
||||||
|
|
||||||
// Widget configuration for modular bar system
|
// Widget configuration for modular bar system
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ import qs.Widgets
|
||||||
|
|
||||||
NIconButton {
|
NIconButton {
|
||||||
id: root
|
id: root
|
||||||
visible: Settings.data.bar.showArchUpdater && ArchUpdaterService.isArchBased
|
|
||||||
sizeMultiplier: 0.8
|
sizeMultiplier: 0.8
|
||||||
|
|
||||||
colorBg: Color.mSurfaceVariant
|
colorBg: Color.mSurfaceVariant
|
||||||
|
|
@ -15,6 +14,8 @@ NIconButton {
|
||||||
icon: !ArchUpdaterService.ready ? "block" : (ArchUpdaterService.busy ? "sync" : (ArchUpdaterService.updatePackages.length > 0 ? "system_update" : "task_alt"))
|
icon: !ArchUpdaterService.ready ? "block" : (ArchUpdaterService.busy ? "sync" : (ArchUpdaterService.updatePackages.length > 0 ? "system_update" : "task_alt"))
|
||||||
|
|
||||||
tooltipText: {
|
tooltipText: {
|
||||||
|
if (!ArchUpdaterService.isArchBased)
|
||||||
|
return "Arch users already ran 'sudo pacman -Syu' for breakfast.";
|
||||||
if (!ArchUpdaterService.checkupdatesAvailable)
|
if (!ArchUpdaterService.checkupdatesAvailable)
|
||||||
return "Please install pacman-contrib to use this feature.";
|
return "Please install pacman-contrib to use this feature.";
|
||||||
if (ArchUpdaterService.busy)
|
if (ArchUpdaterService.busy)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue