mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +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.plasma.networkmanagement as PlasmaNM
|
||||||
import org.kde.kirigami as Kirigami
|
import org.kde.kirigami as Kirigami
|
||||||
|
|
||||||
Kirigami.Icon {
|
Item {
|
||||||
id: connectionIcon
|
id: connectionIcon
|
||||||
|
|
||||||
// data
|
// data
|
||||||
|
|
@ -40,9 +40,16 @@ Kirigami.Icon {
|
||||||
id: connectionIconProvider
|
id: connectionIconProvider
|
||||||
}
|
}
|
||||||
|
|
||||||
// implementation
|
// Internet icon, only show while visible
|
||||||
source: icon
|
Kirigami.Icon {
|
||||||
|
id: internetIcon
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
visible: !connectingIndicator.visible
|
||||||
|
source: connectionIcon.icon
|
||||||
|
}
|
||||||
|
|
||||||
|
// Connecting indicator
|
||||||
QQC2.BusyIndicator {
|
QQC2.BusyIndicator {
|
||||||
id: connectingIndicator
|
id: connectingIndicator
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue