Fix lag with Alt+S when mainpane is collapsed

This commit is contained in:
miruka 2020-03-17 14:48:03 -04:00
parent d96304dc33
commit 84734599e3

View File

@ -15,25 +15,26 @@ HColumnPage {
// The target will be our EventList, not the page itself
becomeKeyboardFlickableTarget: false
onLoadEventListChanged: if (loadEventList) loadedOnce = true
property bool loadedOnce: false
readonly property alias composer: composer
readonly property bool loadEventList: ! pageLoader.appearAnimation.running
readonly property bool loadEventList:
mainUI.mainPane.collapse ?
! mainUI.mainPane.visible : ! pageLoader.appearAnimation.running
RoomHeader {
Layout.fillWidth: true
}
Timer {
id: delayEventListLoadingTimer
interval: 200
running: true
}
HLoader {
id: eventListLoader
sourceComponent: loadEventList ? evListComponent : placeholder
opacity: loadEventList ? 1 : 0
sourceComponent:
loadedOnce || loadEventList ? evListComponent : placeholder
Layout.fillWidth: true
Layout.fillHeight: true