mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 12:10:46 +00:00
Fixed: #2366 Running simple editor on background slowing down other views
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.jpexs.decompiler.flash.easygui;
|
||||
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
import com.jpexs.decompiler.flash.gui.MainPanel;
|
||||
import com.jpexs.decompiler.flash.gui.View;
|
||||
import java.awt.BorderLayout;
|
||||
import java.util.ArrayList;
|
||||
@@ -37,8 +38,8 @@ public class EasyPanel extends JPanel {
|
||||
|
||||
private TabSwitcher<SWF> tabSwitcher;
|
||||
private EasySwfPanel easySwfPanel;
|
||||
public EasyPanel() {
|
||||
easySwfPanel = new EasySwfPanel();
|
||||
public EasyPanel(MainPanel mainPanel) {
|
||||
easySwfPanel = new EasySwfPanel(mainPanel);
|
||||
tabSwitcher = new TabSwitcher<>(easySwfPanel);
|
||||
setLayout(new BorderLayout());
|
||||
add(tabSwitcher, BorderLayout.CENTER);
|
||||
@@ -62,6 +63,10 @@ public class EasyPanel extends JPanel {
|
||||
tabSwitcher.setValue(swf);
|
||||
}
|
||||
|
||||
public void setNoSwf() {
|
||||
easySwfPanel.setTimelined(null);
|
||||
}
|
||||
|
||||
public SWF getSwf() {
|
||||
return tabSwitcher.getSelectedValue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user