Save last selected Easy mode SWF

This commit is contained in:
Jindra Petřík
2024-10-13 19:38:04 +02:00
parent b341837df4
commit f5ec76125d
5 changed files with 29 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
*/
package com.jpexs.decompiler.flash.gui;
import com.jpexs.decompiler.flash.SWF;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.gui.player.FlashPlayerPanel;
import com.jpexs.decompiler.flash.treeitems.OpenableList;
@@ -155,6 +156,13 @@ public final class MainFrameRibbon extends AppRibbonFrame {
Configuration.lastSessionFiles.set(sb.toString());
Configuration.lastSessionFileTitles.set(sbt.toString());
SWF easySwf = panel.getEasyPanel().getSwf();
if (easySwf != null) {
Configuration.lastSessionEasySwf.set(easySwf.getFile()+ "|" + easySwf.getFileTitle());
} else {
Configuration.lastSessionEasySwf.set("");
}
String pathResources = panel.tagTree.getSelectionPathString();
if (pathResources != null) {
Configuration.lastSessionSelection.set(pathResources);