diff --git a/src/com/jpexs/decompiler/flash/gui/MainFrameRibbonMenu.java b/src/com/jpexs/decompiler/flash/gui/MainFrameRibbonMenu.java index cabdfa691..ce343b217 100644 --- a/src/com/jpexs/decompiler/flash/gui/MainFrameRibbonMenu.java +++ b/src/com/jpexs/decompiler/flash/gui/MainFrameRibbonMenu.java @@ -178,6 +178,14 @@ public class MainFrameRibbonMenu extends MainFrameMenu { historyButton.setHorizontalAlignment(SwingUtilities.LEFT); openHistoryPanel.addButtonToLastGroup(historyButton); } + + if (recentFiles.isEmpty()) { + JCommandButton emptyLabel = new JCommandButton(translate("menu.recentFiles.empty")); + emptyLabel.setHorizontalAlignment(SwingUtilities.LEFT); + emptyLabel.setEnabled(false); + openHistoryPanel.addButtonToLastGroup(emptyLabel); + } + openHistoryPanel.setMaxButtonColumns(1); targetPanel.setLayout(new BorderLayout()); targetPanel.add(openHistoryPanel, BorderLayout.CENTER); diff --git a/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties b/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties index 2d9a0f022..1e407b88d 100644 --- a/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties +++ b/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties @@ -708,4 +708,7 @@ message.imported.swf.manually = Cannot load imported SWF\n%url%\nThe file or URL message.warning.hexViewNotUpToDate = Hex View is not up-to-date. Please save and reload the file to update Hex View. message.font.replace.updateTexts = Some characters were replaced. Do you want to update the existing texts? -menu.settings.simplifyExpressions = Simplify expressions \ No newline at end of file +menu.settings.simplifyExpressions = Simplify expressions + +#after 8.0.1 +menu.recentFiles.empty = Recent file list is empty