gtk: make app non-unique

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2021-02-21 23:27:31 +04:00
parent 64a6569da7
commit 25537268d1
2 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,7 @@ impl QemuApplication {
pub fn new() -> Self {
glib::Object::new(&[
("application-id", &Some(config::APP_ID)),
("flags", &ApplicationFlags::empty()),
("flags", &ApplicationFlags::NON_UNIQUE),
])
.expect("Application initialization failed...")
}

View File

@ -192,6 +192,7 @@ impl QemuConsole {
}),
);
priv_.console.set(console).unwrap();
priv_.area.grab_focus();
}
fn qemu_console(&self) -> &Console {