Desktop: Focus app window when loading a document (#4124)

This commit is contained in:
Timon
2026-05-08 15:00:20 +00:00
committed by GitHub
parent 9d876ab27d
commit d97fe835b5
8 changed files with 23 additions and 0 deletions
+5
View File
@@ -368,6 +368,11 @@ impl App {
window.start_drag();
}
}
DesktopFrontendMessage::WindowFocus => {
if let Some(window) = &self.window {
window.focus();
}
}
DesktopFrontendMessage::WindowHide => {
if let Some(window) = &self.window {
window.hide();