mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-14 03:32:03 +00:00
#1639 Clearing search results for current file
This commit is contained in:
@@ -211,6 +211,13 @@ public class MainFrameRibbonMenu extends MainFrameMenu {
|
||||
emptyLabel.setHorizontalAlignment(SwingUtilities.LEFT);
|
||||
emptyLabel.setEnabled(false);
|
||||
searchHistoryPanel.addButtonToLastGroup(emptyLabel);
|
||||
height += emptyLabel.getHeight() + 4 /*layoutGap*/;
|
||||
} else {
|
||||
JCommandButton clearButton = new JCommandButton(translate("menu.recentSearches.clear"));
|
||||
clearButton.setHorizontalAlignment(SwingUtilities.LEFT);
|
||||
clearButton.addActionListener(this::clearRecentSearchesForCurrentSwfActionPerformed);
|
||||
searchHistoryPanel.addButtonToLastGroup(clearButton);
|
||||
height += clearButton.getHeight() + 4 /*layoutGap*/;
|
||||
}
|
||||
|
||||
searchHistoryPanel.setMaxButtonColumns(1);
|
||||
|
||||
Reference in New Issue
Block a user