Update
This commit is contained in:
parent
b423a3f4c5
commit
284748ebf0
|
@ -1,8 +0,0 @@
|
|||
*.pkg.tar
|
||||
*.pkg.tar.*
|
||||
*.zst
|
||||
*.zst.*
|
||||
pkg/
|
||||
src/
|
||||
.idea/
|
||||
plasma-plasmoid-archupdate
|
|
@ -30,7 +30,7 @@ Item {
|
|||
radius: Math.round(width / 2)
|
||||
color: "Black"
|
||||
opacity: 0.7
|
||||
visible: false
|
||||
visible: root.badgeVisible
|
||||
anchors {
|
||||
right: parent.right
|
||||
top: parent.top
|
||||
|
@ -42,7 +42,7 @@ Item {
|
|||
font.pointSize: 6
|
||||
color: "White"
|
||||
anchors.centerIn: circle
|
||||
visible: circle.visible
|
||||
visible: root.badgeVisible
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
|
|
@ -24,6 +24,8 @@ Item {
|
|||
|
||||
property string total: "0"
|
||||
|
||||
property bool badgeVisible: false
|
||||
|
||||
property bool showNotification: Plasmoid.configuration.showNotification
|
||||
|
||||
property string notifyText: ""
|
||||
|
@ -78,31 +80,31 @@ Item {
|
|||
switch (upgradeStatus) {
|
||||
case normalStatus:
|
||||
mainIcon = iconDefault
|
||||
compactRep.circle.visible = false
|
||||
badgeVisible = false
|
||||
break
|
||||
case checkingUpdatesStatus:
|
||||
mainIcon = iconRefresh
|
||||
//total = 0
|
||||
compactRep.circle.visible = true
|
||||
total = "↻"
|
||||
badgeVisible = false
|
||||
//total = "↻"
|
||||
break
|
||||
case readyStatus:
|
||||
mainIcon = iconReadyToUpgrade
|
||||
compactRep.circle.visible = true
|
||||
badgeVisible = true
|
||||
break
|
||||
case installingStatus:
|
||||
mainIcon = iconInstalling
|
||||
compactRep.circle.visible = true
|
||||
badgeVisible = true
|
||||
break
|
||||
case errorStatus:
|
||||
mainIcon = iconError
|
||||
total = 0
|
||||
compactRep.circle.visible = false
|
||||
badgeVisible = false
|
||||
break
|
||||
default:
|
||||
mainIcon = iconDefault
|
||||
total = 0
|
||||
compactRep.circle.visible = false
|
||||
badgeVisible = false
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue