GP-5202: Saving last filesystem import location when opened via File ->

Import File
This commit is contained in:
Ryan Kurtz
2024-12-17 12:11:10 -05:00
parent f0641fd72a
commit ae32625613
@@ -116,11 +116,12 @@ public class ImporterDialog extends DialogComponentProvider {
this.suggestedDestinationPath = suggestedDestinationPath;
if (FileSystemService.getInstance().isLocal(fsrl)) {
// only save the imported file's path if its a local filesystem path that
// will be valid when used later. FSRL paths that drill into container files
// aren't widely supported yet.
Preferences.setProperty(Preferences.LAST_IMPORT_FILE, fsrl.getPath());
}
else if (fsrl.getFS().getContainer() != null) {
Preferences.setProperty(Preferences.LAST_IMPORT_FILE,
fsrl.getFS().getContainer().getPath());
}
addWorkPanel(buildWorkPanel());
addOKButton();