mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 16:47:43 +08:00
Merge remote-tracking branch 'origin/GP-5202_ryanmkurtz_last-import'
(Closes #7266)
This commit is contained in:
@@ -116,11 +116,12 @@ public class ImporterDialog extends DialogComponentProvider {
|
|||||||
this.suggestedDestinationPath = suggestedDestinationPath;
|
this.suggestedDestinationPath = suggestedDestinationPath;
|
||||||
|
|
||||||
if (FileSystemService.getInstance().isLocal(fsrl)) {
|
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());
|
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());
|
addWorkPanel(buildWorkPanel());
|
||||||
addOKButton();
|
addOKButton();
|
||||||
|
|||||||
Reference in New Issue
Block a user