mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-01 19:04:38 +00:00
save last selected path for each swf
This commit is contained in:
@@ -28,6 +28,7 @@ import com.jpexs.decompiler.flash.abc.avm2.AVM2ConstantPool;
|
||||
import com.jpexs.decompiler.flash.abc.types.traits.Trait;
|
||||
import com.jpexs.decompiler.flash.configuration.Configuration;
|
||||
import com.jpexs.decompiler.flash.configuration.ConfigurationItem;
|
||||
import com.jpexs.decompiler.flash.configuration.SwfSpecificConfiguration;
|
||||
import com.jpexs.decompiler.flash.dumpview.DumpInfo;
|
||||
import com.jpexs.decompiler.flash.dumpview.DumpInfoSwfNode;
|
||||
import com.jpexs.decompiler.flash.exporters.BinaryDataExporter;
|
||||
@@ -2808,6 +2809,19 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
treeItem = (TreeItem) treePath.getLastPathComponent();
|
||||
}
|
||||
|
||||
// save last selected node to config
|
||||
if (treeItem != null) {
|
||||
SWF swf = treeItem.getSwf();
|
||||
if (swf != null) {
|
||||
swf = swf.getRootSwf();
|
||||
}
|
||||
|
||||
if (swf != null) {
|
||||
SwfSpecificConfiguration swfConf = Configuration.getOrCreateSwfSpecificConfiguration(swf.getShortFileName());
|
||||
swfConf.lastSelectedPath = tagTree.getSelectionPathString();
|
||||
}
|
||||
}
|
||||
|
||||
if (!forceReload && (treeItem == oldItem)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user