mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-4594: Fixing regression with library search paths not getting saved
This commit is contained in:
parent
ce970fa416
commit
29f215348a
3 changed files with 10 additions and 17 deletions
|
@ -79,17 +79,17 @@ public class ScriptPathsPropertyEditor extends AbstractTypedPropertyEditor<Strin
|
|||
|
||||
@Override
|
||||
protected PathnameTablePanel newPathnameTablePanel() {
|
||||
PathnameTablePanel tablePanel = new ScriptPathsPanel(this::reset);
|
||||
tablePanel.setFileChooserProperties(getTitle(), "DebuggerLaunchScriptDirectory",
|
||||
PathnameTablePanel panel = new ScriptPathsPanel(loadPaths(), this::reset);
|
||||
panel.setFileChooserProperties(getTitle(), "DebuggerLaunchScriptDirectory",
|
||||
GhidraFileChooserMode.DIRECTORIES_ONLY, true, null);
|
||||
return tablePanel;
|
||||
return panel;
|
||||
}
|
||||
}
|
||||
|
||||
protected class ScriptPathsPanel extends PathnameTablePanel {
|
||||
public ScriptPathsPanel(Callback resetCallback) {
|
||||
public ScriptPathsPanel(String[] paths, Callback resetCallback) {
|
||||
// disable edits, top/bottom irrelevant, unordered
|
||||
super(null, resetCallback, false, false, false);
|
||||
super(paths, resetCallback, false, false, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue