Filter: Save changes immediately after adding pattern; and before clicking Summary

This commit is contained in:
Tony George 2020-11-16 17:04:24 +05:30
parent 55870b94d1
commit 094317e7d0

View File

@ -233,6 +233,8 @@ class ExcludeBox : Gtk.Box{
treeview_add_item(treeview, pattern); // don't strip treeview_add_item(treeview, pattern); // don't strip
Main.first_snapshot_size = 0; //re-calculate Main.first_snapshot_size = 0; //re-calculate
} }
save_changes();
}); });
button = add_button(hbox, _("Add Files"), _("Add files"), size_group, null); button = add_button(hbox, _("Add Files"), _("Add files"), size_group, null);
@ -262,6 +264,7 @@ class ExcludeBox : Gtk.Box{
button = add_button(hbox, _("Summary"), "", size_group, null); button = add_button(hbox, _("Summary"), "", size_group, null);
button.clicked.connect(()=>{ button.clicked.connect(()=>{
save_changes();
new ExcludeListSummaryWindow(false); new ExcludeListSummaryWindow(false);
}); });
} }