From 284748ebf0e7bf8fca7ef0975fcf3b6759081e45 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Wed, 24 May 2023 11:19:31 +0500 Subject: [PATCH] Update --- .gitignore | 8 -------- .../contents/ui/Compact.qml | 4 ++-- .../contents/ui/main.qml | 16 +++++++++------- 3 files changed, 11 insertions(+), 17 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index a97a42b..0000000 --- a/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -*.pkg.tar -*.pkg.tar.* -*.zst -*.zst.* -pkg/ -src/ -.idea/ -plasma-plasmoid-archupdate diff --git a/com.github.Melawy.ArchUpdate/contents/ui/Compact.qml b/com.github.Melawy.ArchUpdate/contents/ui/Compact.qml index ec7c049..678cb4a 100644 --- a/com.github.Melawy.ArchUpdate/contents/ui/Compact.qml +++ b/com.github.Melawy.ArchUpdate/contents/ui/Compact.qml @@ -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 { diff --git a/com.github.Melawy.ArchUpdate/contents/ui/main.qml b/com.github.Melawy.ArchUpdate/contents/ui/main.qml index a0abb41..8d9e99b 100644 --- a/com.github.Melawy.ArchUpdate/contents/ui/main.qml +++ b/com.github.Melawy.ArchUpdate/contents/ui/main.qml @@ -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 } }