mirror of https://github.com/procxx/kepka.git
				
				
				
			Fix crash in media preview.
This commit is contained in:
		
							parent
							
								
									cf227490d7
								
							
						
					
					
						commit
						3ad29f6eb7
					
				| 
						 | 
				
			
			@ -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…
	
		Reference in New Issue