Application.Client: Prevent app modal dialogs blocking inspector windows

Fixes #932
This commit is contained in:
Michael Gratton 2020-08-22 10:27:06 +10:00
parent b8ed6ed230
commit 20c4402bef

View file

@ -712,6 +712,12 @@ public class Application.Client : Gtk.Application {
this.inspector.destroy.connect(() => {
this.inspector = null;
});
// Create a new window group for the inspector so it is
// not affected by the app's modal dialogs
var group = new Gtk.WindowGroup();
group.add_window(this.inspector);
this.inspector.show();
} else {
this.inspector.present();