From bcb3e60f6738237d531e1b4354f7abee831d0df6 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 21 Jan 2022 21:40:32 -0800 Subject: [PATCH] Qt: Make separate save games submenu --- src/platform/qt/Window.cpp | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index ece85c851..d9a25bbe5 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -1197,12 +1197,25 @@ void Window::setupMenu(QMenuBar* menubar) { m_actions.addAction(tr("Add folder to library..."), "addDirToLibrary", this, &Window::addDirToLibrary, "file"); #endif + m_actions.addMenu(tr("Save games"), "saves", "file"); addGameAction(tr("Load alternate save game..."), "loadAlternateSave", [this]() { this->selectSave(false); - }, "file"); + }, "saves"); addGameAction(tr("Load temporary save game..."), "loadTemporarySave", [this]() { this->selectSave(true); - }, "file"); + }, "saves"); + + m_actions.addSeparator("saves"); + + m_actions.addAction(tr("Convert save game..."), "convertSave", openControllerTView(), "saves"); + +#ifdef M_CORE_GBA + Action* importShark = addGameAction(tr("Import GameShark Save..."), "importShark", this, &Window::importSharkport, "saves"); + m_platformActions.insert(mPLATFORM_GBA, importShark); + + Action* exportShark = addGameAction(tr("Export GameShark Save..."), "exportShark", this, &Window::exportSharkport, "saves"); + m_platformActions.insert(mPLATFORM_GBA, exportShark); +#endif m_actions.addAction(tr("Load &patch..."), "loadPatch", this, &Window::selectPatch, "file"); @@ -1282,17 +1295,6 @@ void Window::setupMenu(QMenuBar* menubar) { m_nonMpActions.append(quickSave); } -#ifdef M_CORE_GBA - m_actions.addSeparator("file"); - m_actions.addAction(tr("Convert save game..."), "convertSave", openControllerTView(), "file"); - - Action* importShark = addGameAction(tr("Import GameShark Save..."), "importShark", this, &Window::importSharkport, "file"); - m_platformActions.insert(mPLATFORM_GBA, importShark); - - Action* exportShark = addGameAction(tr("Export GameShark Save..."), "exportShark", this, &Window::exportSharkport, "file"); - m_platformActions.insert(mPLATFORM_GBA, exportShark); -#endif - m_actions.addSeparator("file"); m_multiWindow = m_actions.addAction(tr("New multiplayer window"), "multiWindow", [this]() { GBAApp::app()->newWindow();