fix: move the clear favorites menu items from the edit menu to the tools menu.

The edit menu items is supposed to appliy an action for the currently selected games in the game list, the clear favorites items did not.
This commit is contained in:
lantzelot-swe 2024-02-10 23:08:34 +01:00
parent 5d3f57b1ea
commit e7a608f835
2 changed files with 353 additions and 265 deletions

View File

@ -49,7 +49,7 @@ public final class MainWindow extends JFrame
this.setIconImage(new ImageIcon(getClass().getResource("/se/lantz/FrameIcon.png")).getImage());
this.setTitle("PCUAE Manager");
uiModel = new MainViewModel();
menuManager = new MenuManager(uiModel, this);
menuManager = new MenuManager(uiModel);
this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
this.addWindowListener(new java.awt.event.WindowAdapter()
@ -102,7 +102,7 @@ public final class MainWindow extends JFrame
public void refreshMenuAndUI()
{
getJMenuBar().removeAll();
menuManager.setupEditMenu();
menuManager.updateEditMenu();
for (JMenu menu : menuManager.getMenues())
{
menuBar.add(menu);

File diff suppressed because it is too large Load Diff