mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Fixed possible crash in notifications manager.
This commit is contained in:
parent
bb76818cc8
commit
c1067d8fe1
2 changed files with 3 additions and 1 deletions
|
@ -76,7 +76,7 @@ Manager::Manager(System *system)
|
|||
system->settingsChanged(
|
||||
) | rpl::start_with_next([=](ChangeType change) {
|
||||
settingsChanged(change);
|
||||
}, system->lifetime());
|
||||
}, _lifetime);
|
||||
}
|
||||
|
||||
Manager::QueuedNotification::QueuedNotification(
|
||||
|
|
|
@ -126,6 +126,8 @@ private:
|
|||
|
||||
mutable QPixmap _hiddenUserpicPlaceholder;
|
||||
|
||||
rpl::lifetime _lifetime;
|
||||
|
||||
};
|
||||
|
||||
namespace internal {
|
||||
|
|
Loading…
Add table
Reference in a new issue