Makse sure busyspimmer are only running when required
This commit is contained in:
@@ -38,6 +38,7 @@ Loader {
|
|||||||
text: typingNotification
|
text: typingNotification
|
||||||
}
|
}
|
||||||
BusyIndicator {
|
BusyIndicator {
|
||||||
|
running: root.active
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
Layout.preferredWidth: Kirigami.Units.iconSizes.smallMedium
|
Layout.preferredWidth: Kirigami.Units.iconSizes.smallMedium
|
||||||
Layout.preferredHeight: Kirigami.Units.iconSizes.smallMedium
|
Layout.preferredHeight: Kirigami.Units.iconSizes.smallMedium
|
||||||
|
|||||||
@@ -98,8 +98,9 @@ Kirigami.ScrollablePage {
|
|||||||
id: loadingIndicator
|
id: loadingIndicator
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
visible: page.currentRoom === null || (messageListView.count === 0 && !page.currentRoom.allHistoryLoaded && !page.currentRoom.isInvite)
|
visible: page.currentRoom === null || (messageListView.count === 0 && !page.currentRoom.allHistoryLoaded && !page.currentRoom.isInvite)
|
||||||
|
text: i18n("Loading")
|
||||||
QQC2.BusyIndicator {
|
QQC2.BusyIndicator {
|
||||||
running: true
|
running: loadingIndicator.visible
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -342,6 +343,7 @@ Kirigami.ScrollablePage {
|
|||||||
}
|
}
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
property: "opacity"; to: 1
|
property: "opacity"; to: 1
|
||||||
|
duration: Kirigami.Units.shortDuration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -353,6 +355,7 @@ Kirigami.ScrollablePage {
|
|||||||
}
|
}
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
property: "opacity"; to: 1
|
property: "opacity"; to: 1
|
||||||
|
duration: Kirigami.Units.shortDuration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -744,7 +747,7 @@ Kirigami.ScrollablePage {
|
|||||||
Connections {
|
Connections {
|
||||||
enabled: Config.showFancyEffects
|
enabled: Config.showFancyEffects
|
||||||
target: messageEventModel
|
target: messageEventModel
|
||||||
onFancyEffectsReasonFound: {
|
function onFancyEffectsReasonFound(fancyEffect) {
|
||||||
fancyEffectsContainer.processFancyEffectsReason(fancyEffect)
|
fancyEffectsContainer.processFancyEffectsReason(fancyEffect)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -752,7 +755,7 @@ Kirigami.ScrollablePage {
|
|||||||
Connections {
|
Connections {
|
||||||
enabled: Config.showFancyEffects
|
enabled: Config.showFancyEffects
|
||||||
target: chatBox
|
target: chatBox
|
||||||
onFancyEffectsReasonFound: {
|
function onFancyEffectsReasonFound(fancyEffect) {
|
||||||
fancyEffectsContainer.processFancyEffectsReason(fancyEffect)
|
fancyEffectsContainer.processFancyEffectsReason(fancyEffect)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user