Block input to main windows for DB vacuum/upgrade
This commit is contained in:
parent
f4a797253f
commit
47a5fbcd2f
1 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue