mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 08:40:47 +00:00
updateComponents typo fix
Save button disabled for bundles
This commit is contained in:
@@ -334,7 +334,7 @@ public class MainFrameClassicMenu implements MainFrameMenu, ActionListener {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateComponets(SWF swf, List<ABCContainerTag> abcList) {
|
||||
public void updateComponents(SWF swf, List<ABCContainerTag> abcList) {
|
||||
boolean swfLoaded = swf != null;
|
||||
boolean hasAbc = swfLoaded && abcList != null && !abcList.isEmpty();
|
||||
|
||||
|
||||
@@ -28,5 +28,5 @@ public interface MainFrameMenu {
|
||||
|
||||
public boolean isInternalFlashViewerSelected();
|
||||
|
||||
public void updateComponets(SWF swf, List<ABCContainerTag> abcList);
|
||||
public void updateComponents(SWF swf, List<ABCContainerTag> abcList);
|
||||
}
|
||||
|
||||
@@ -472,7 +472,7 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateComponets(SWF swf, List<ABCContainerTag> abcList) {
|
||||
public void updateComponents(SWF swf, List<ABCContainerTag> abcList) {
|
||||
boolean swfLoaded = swf != null;
|
||||
boolean hasAbc = swfLoaded && abcList != null && !abcList.isEmpty();
|
||||
|
||||
@@ -482,7 +482,8 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
|
||||
closeFileMenu.setEnabled(swfLoaded);
|
||||
closeAllFilesMenu.setEnabled(swfLoaded);
|
||||
|
||||
saveCommandButton.setEnabled(swfLoaded);
|
||||
boolean isBundle = swfLoaded && (swf.swfList!=null ) && swf.swfList.isBundle;
|
||||
saveCommandButton.setEnabled(swfLoaded && !isBundle);
|
||||
saveasCommandButton.setEnabled(swfLoaded);
|
||||
saveasexeCommandButton.setEnabled(swfLoaded);
|
||||
exportAllCommandButton.setEnabled(swfLoaded);
|
||||
|
||||
@@ -934,7 +934,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
|
||||
isWelcomeScreen = false;
|
||||
}
|
||||
|
||||
mainMenu.updateComponets(swf, abcList);
|
||||
mainMenu.updateComponents(swf, abcList);
|
||||
}
|
||||
|
||||
private void updateUi() {
|
||||
@@ -945,7 +945,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
|
||||
}
|
||||
|
||||
mainFrame.setTitle(ApplicationInfo.applicationVerName);
|
||||
mainMenu.updateComponets(null, null);
|
||||
mainMenu.updateComponents(null, null);
|
||||
}
|
||||
|
||||
public void closeAll() {
|
||||
|
||||
Reference in New Issue
Block a user