mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +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] {
|
||||
updateGlobalMenu();
|
||||
if (!AuthSession::Exists()) {
|
||||
_mediaPreview.destroy();
|
||||
}
|
||||
});
|
||||
subscribe(Window::Theme::Background(), [this](const Window::Theme::BackgroundUpdate &data) {
|
||||
themeUpdated(data);
|
||||
|
|
Loading…
Add table
Reference in a new issue