updateComponents typo fix

Save button disabled for bundles
This commit is contained in:
Jindra Pet��k
2014-01-25 13:30:55 +01:00
parent 2774eb5637
commit ddbea70903
4 changed files with 7 additions and 6 deletions
@@ -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);