mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 20:03:12 +00:00
Added view removal reason to skip animations on rebuilt views.
This commit is contained in:
@@ -2206,12 +2206,12 @@ auto Session::itemsAboutToBeDestroyed() const
|
||||
}
|
||||
|
||||
void Session::notifyViewAboutToBeRemoved(
|
||||
not_null<const ViewElement*> view) {
|
||||
_viewAboutToBeRemoved.fire_copy(view);
|
||||
not_null<const ViewElement*> view,
|
||||
ViewRemovalReason reason) {
|
||||
_viewAboutToBeRemoved.fire({ view, reason });
|
||||
}
|
||||
|
||||
rpl::producer<not_null<const ViewElement*>>
|
||||
Session::viewAboutToBeRemoved() const {
|
||||
rpl::producer<ViewRemoval> Session::viewAboutToBeRemoved() const {
|
||||
return _viewAboutToBeRemoved.events();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user