mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fix crash in media preview.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user