Commit 6e4e8a7d authored by Balló György's avatar Balló György

application: Present active window if available

parent b080f493
...@@ -28,6 +28,11 @@ mod imp { ...@@ -28,6 +28,11 @@ mod imp {
self.parent_activate(); self.parent_activate();
let application = self.obj(); let application = self.obj();
if let Some(window) = application.active_window() {
window.present();
return;
}
let window = Window::new(&application); let window = Window::new(&application);
application.add_window(&window); application.add_window(&window);
window.present(); window.present();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment