mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +00:00
statusbar: Don't show internet icon and loading indicator at same time
Ensure that the internet icon and the loading indicator do not show at the same time.
This commit is contained in:
parent
529940341b
commit
23797660ac
1 changed files with 10 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ import QtQuick.Controls as QQC2
|
|||
import org.kde.plasma.networkmanagement as PlasmaNM
|
||||
import org.kde.kirigami as Kirigami
|
||||
|
||||
Kirigami.Icon {
|
||||
Item {
|
||||
id: connectionIcon
|
||||
|
||||
// data
|
||||
|
|
@ -40,9 +40,16 @@ Kirigami.Icon {
|
|||
id: connectionIconProvider
|
||||
}
|
||||
|
||||
// implementation
|
||||
source: icon
|
||||
// Internet icon, only show while visible
|
||||
Kirigami.Icon {
|
||||
id: internetIcon
|
||||
|
||||
anchors.fill: parent
|
||||
visible: !connectingIndicator.visible
|
||||
source: connectionIcon.icon
|
||||
}
|
||||
|
||||
// Connecting indicator
|
||||
QQC2.BusyIndicator {
|
||||
id: connectingIndicator
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue