From 14c4ee6047ea2c29827999f3a3d91abdd89cc928 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 20 Sep 2021 14:19:20 +0200 Subject: [PATCH] fix(@desktop/chat): Reopening gif popup open trending fixes #3491 --- ui/shared/status/StatusGifPopup.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/shared/status/StatusGifPopup.qml b/ui/shared/status/StatusGifPopup.qml index 0f7d1677a9..98c4d401a3 100644 --- a/ui/shared/status/StatusGifPopup.qml +++ b/ui/shared/status/StatusGifPopup.qml @@ -68,6 +68,9 @@ Popup { } onClosed: { + popup.currentCategory = StatusGifPopup.Category.Trending + popup.previousCategory = StatusGifPopup.Category.Trending + if (confirmationPopup.opened) { confirmationPopup.close() } @@ -220,7 +223,7 @@ Popup { anchors.horizontalCenter: parent.horizontalCenter source: `./assets/img/gif-${Style.current.name}.svg` } - + StyledText { id: title anchors.horizontalCenter: parent.horizontalCenter @@ -281,7 +284,7 @@ Popup { anchors.top: emptyText.bottom anchors.topMargin: Style.current.padding anchors.horizontalCenter: parent.horizontalCenter - + text: qsTr("Retry") visible: currentCategory === StatusGifPopup.Category.Trending || currentCategory === StatusGifPopup.Category.Search onClicked: { @@ -289,7 +292,7 @@ Popup { chatsModel.gif.getTrendings() return } - + searchGif(searchBox.text) } }