Fixed: Not selecting proper script after restoring session

This commit is contained in:
Jindra Petřík
2021-02-28 13:12:46 +01:00
parent c800aa7ca4
commit 1d030ac10a
3 changed files with 18 additions and 1 deletions

View File

@@ -1195,7 +1195,11 @@ public class Main {
SwfSpecificConfiguration swfConf = Configuration.getSwfSpecificConfiguration(fswf.getShortFileName());
if (swfConf != null) {
String pathStr = swfConf.lastSelectedPath;
mainFrame.getPanel().tagTree.setSelectionPathString(pathStr);
if (isInited()) {
mainFrame.getPanel().tagTree.setSelectionPathString(pathStr);
} else {
mainFrame.getPanel().tagTree.setExpandPathString(pathStr);
}
}
}