mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed build in Xcode.
This commit is contained in:
parent
6d3f9017fa
commit
fd2edb51e9
3 changed files with 12 additions and 10 deletions
|
@ -242,7 +242,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void notifyUnreadStateChange(const UnreadState &wasState);
|
void notifyUnreadStateChange(const UnreadState &wasState);
|
||||||
auto unreadStateChangeNotifier(bool required);
|
inline auto unreadStateChangeNotifier(bool required);
|
||||||
|
|
||||||
[[nodiscard]] int lookupPinnedIndex(FilterId filterId) const;
|
[[nodiscard]] int lookupPinnedIndex(FilterId filterId) const;
|
||||||
|
|
||||||
|
|
|
@ -57,14 +57,7 @@ private:
|
||||||
void finalizeCloudUnread();
|
void finalizeCloudUnread();
|
||||||
void recomputeFullListSize();
|
void recomputeFullListSize();
|
||||||
|
|
||||||
auto unreadStateChangeNotifier(bool notify) {
|
inline auto unreadStateChangeNotifier(bool notify);
|
||||||
const auto wasState = notify ? unreadState() : UnreadState();
|
|
||||||
return gsl::finally([=] {
|
|
||||||
if (notify) {
|
|
||||||
_unreadStateChanges.fire_copy(wasState);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
FilterId _filterId = 0;
|
FilterId _filterId = 0;
|
||||||
IndexedList _all;
|
IndexedList _all;
|
||||||
|
@ -82,4 +75,13 @@ private:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
auto MainList::unreadStateChangeNotifier(bool notify) {
|
||||||
|
const auto wasState = notify ? unreadState() : UnreadState();
|
||||||
|
return gsl::finally([=] {
|
||||||
|
if (notify) {
|
||||||
|
_unreadStateChanges.fire_copy(wasState);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Dialogs
|
} // namespace Dialogs
|
||||||
|
|
|
@ -117,7 +117,7 @@ QImage UnreadBadge(not_null<PeerData*> peer) {
|
||||||
|
|
||||||
Dialogs::Ui::PaintUnreadBadge(
|
Dialogs::Ui::PaintUnreadBadge(
|
||||||
p,
|
p,
|
||||||
unread,
|
counter,
|
||||||
result.width(),
|
result.width(),
|
||||||
result.height() - unreadSt.size,
|
result.height() - unreadSt.size,
|
||||||
unreadSt,
|
unreadSt,
|
||||||
|
|
Loading…
Add table
Reference in a new issue