Commit 47a5fbcd authored by Chris Heywood's avatar Chris Heywood

Block input to main windows for DB vacuum/upgrade

parent f4a79725
Pipeline #142598 passed with stages
in 25 minutes and 56 seconds
......@@ -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;
}
}
/**
......
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