Fix settings export/import filechooser cancel action

This commit is contained in:
Charles Gagnon
2022-04-14 12:46:30 -04:00
parent 498dc3cc98
commit ee7c2ffce5
2 changed files with 3 additions and 395 deletions

File diff suppressed because one or more lines are too long

View File

@@ -2268,7 +2268,9 @@ const Preferences = class {
dialog.show();
dialog.connect('response', (dialog, id) => {
acceptHandler.call(this, dialog.get_file().get_path());
if (id == Gtk.ResponseType.ACCEPT)
acceptHandler.call(this, dialog.get_file().get_path());
dialog.destroy();
});
}