mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix crash in media preview.
This commit is contained in:
parent
cf227490d7
commit
3ad29f6eb7
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@ MainWindow::MainWindow() {
|
||||||
|
|
||||||
subscribe(Messenger::Instance().authSessionChanged(), [this] {
|
subscribe(Messenger::Instance().authSessionChanged(), [this] {
|
||||||
updateGlobalMenu();
|
updateGlobalMenu();
|
||||||
|
if (!AuthSession::Exists()) {
|
||||||
|
_mediaPreview.destroy();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
subscribe(Window::Theme::Background(), [this](const Window::Theme::BackgroundUpdate &data) {
|
subscribe(Window::Theme::Background(), [this](const Window::Theme::BackgroundUpdate &data) {
|
||||||
themeUpdated(data);
|
themeUpdated(data);
|
||||||
|
|
Loading…
Add table
Reference in a new issue