Merge remote-tracking branch 'origin/GP-1_ghidragon_fixed_mysterious_appearing_tool--SQUASHED'

This commit is contained in:
ghidragon 2022-12-09 11:12:48 -05:00
commit 17b97554d5

View file

@ -212,6 +212,17 @@ public class FrontEndTool extends PluginTool implements OptionsChangeListener {
return null;
}
@Override
protected boolean doSaveTool() {
// This method is overridden to allow the FrontEndTool to perform custom saving.
// The super.doSaveTool is designed to save tools to the user's tool chest directory. The
// FrontEndTool saves its state directly in the user's settings directory and includes
// the entire project's state such as what tools were running and data states for each
// running tool.
saveToolConfigurationToDisk();
return true;
}
void saveToolConfigurationToDisk() {
ToolTemplate template = saveToolToToolTemplate();
Element root = new Element(FRONT_END_TOOL_XML_NAME);
@ -346,7 +357,6 @@ public class FrontEndTool extends PluginTool implements OptionsChangeListener {
@Override
public void exit() {
saveToolConfigurationToDisk();
plugin.exitGhidra();
}