2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show loading placeholders in chats list.

This commit is contained in:
John Preston
2024-05-21 13:58:37 +04:00
parent e00c6ecfb8
commit 1865fd382c
5 changed files with 72 additions and 19 deletions

View File

@@ -141,9 +141,6 @@ public:
[[nodiscard]] not_null<const style::DialogRow*> st() const {
return _st;
}
[[nodiscard]] bool waitingForSearch() const {
return _waitingForSearch;
}
[[nodiscard]] bool hasFilteredResults() const;
void applySearchState(SearchState state);
@@ -467,7 +464,6 @@ private:
int _filteredSelected = -1;
int _filteredPressed = -1;
bool _waitingForSearch = false;
EmptyState _emptyState = EmptyState::None;
QString _peerSearchQuery;
@@ -485,6 +481,7 @@ private:
WidgetState _state = WidgetState::Default;
object_ptr<Ui::RpWidget> _loadingAnimation = { nullptr };
object_ptr<SearchEmpty> _searchEmpty = { nullptr };
SearchState _searchEmptyState;
object_ptr<Ui::FlatLabel> _empty = { nullptr };