Block input to main windows for DB vacuum/upgrade

This commit is contained in:
Chris Heywood 2020-01-10 10:45:32 +01:00
parent f4a797253f
commit 47a5fbcd2f

View file

@ -32,6 +32,11 @@ public class UpgradeDialog : Object {
}
private void on_start() {
// Disable main windows
foreach (Application.MainWindow window in this.application.get_main_windows()) {
window.sensitive = false;
}
Gtk.Builder builder = GioUtil.create_builder("upgrade_dialog.glade");
this.dialog = (Gtk.Dialog) builder.get_object("dialog");
this.dialog.set_transient_for(
@ -58,6 +63,11 @@ public class UpgradeDialog : Object {
this.dialog.hide();
this.dialog = null;
}
// Enable main windows
foreach (Application.MainWindow window in this.application.get_main_windows()) {
window.sensitive = true;
}
}
/**