mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-02 05:24:20 +00:00
#1163 Clicking on Open > File will make the program buggy: show empty message
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user