mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 17:50:46 +00:00
#918 Can't start FFDec fix, Swedish translation fixed (moved from english fiel to sv file)
This commit is contained in:
@@ -1176,21 +1176,24 @@ public class Main {
|
||||
|
||||
private static void reloadLastSession() {
|
||||
if (Configuration.saveSessionOnExit.get()) {
|
||||
String lastSession = Configuration.lastSessionData.get();
|
||||
String lastSession = Configuration.lastSessionFiles.get();
|
||||
if (lastSession != null && lastSession.length() > 0) {
|
||||
String[] filesToOpen = lastSession.split(File.pathSeparator, -1);
|
||||
int cnt = filesToOpen.length - 1;
|
||||
SWFSourceInfo[] sourceInfos = new SWFSourceInfo[cnt];
|
||||
for (int i = 0; i < cnt; i++) {
|
||||
String fileToOpen = filesToOpen[i];
|
||||
sourceInfos[i] = new SWFSourceInfo(null, fileToOpen, null);
|
||||
List<String> exfiles = new ArrayList<>();
|
||||
for (int i = 0; i < filesToOpen.length; i++) {
|
||||
if (new File(filesToOpen[i]).exists()) {
|
||||
exfiles.add(filesToOpen[i]);
|
||||
}
|
||||
}
|
||||
SWFSourceInfo[] sourceInfos = new SWFSourceInfo[exfiles.size()];
|
||||
for (int i = 0; i < exfiles.size(); i++) {
|
||||
sourceInfos[i] = new SWFSourceInfo(null, exfiles.get(i), null);
|
||||
}
|
||||
if (sourceInfos.length > 0) {
|
||||
openFile(sourceInfos, () -> {
|
||||
mainFrame.getPanel().tagTree.setSelectionPathString(Configuration.lastSessionSelection.get());
|
||||
});
|
||||
}
|
||||
|
||||
openFile(sourceInfos, () -> {
|
||||
// last part contains the selected node in the tagtree
|
||||
String pathStr = filesToOpen[filesToOpen.length - 1];
|
||||
mainFrame.getPanel().tagTree.setSelectionPathString(pathStr);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user