From cf533df8142d5d944889c970947957dbea48fc86 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sat, 5 Nov 2022 22:52:18 +0100 Subject: [PATCH] MemoryWidget: Split Actions into Import and Export. --- .../Core/DolphinQt/Debugger/MemoryWidget.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp index 4019450c3a..fa4fd057f8 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp @@ -246,17 +246,18 @@ void MemoryWidget::CreateWidgets() // Sidebar top menu QMenuBar* menubar = new QMenuBar(sidebar); menubar->setNativeMenuBar(false); - QMenu* menu_actions = new QMenu(tr("&Actions")); - menu_actions->addAction(tr("&Load file to current address"), this, - &MemoryWidget::OnSetValueFromFile); - menu_actions->addSeparator(); - menu_actions->addAction(tr("Dump &MRAM"), this, &MemoryWidget::OnDumpMRAM); - menu_actions->addAction(tr("Dump &ExRAM"), this, &MemoryWidget::OnDumpExRAM); - menu_actions->addAction(tr("Dump &ARAM"), this, &MemoryWidget::OnDumpARAM); - menu_actions->addAction(tr("Dump &FakeVMEM"), this, &MemoryWidget::OnDumpFakeVMEM); + QMenu* menu_import = new QMenu(tr("&Import")); + menu_import->addAction(tr("&Load file to current address"), this, + &MemoryWidget::OnSetValueFromFile); + menubar->addMenu(menu_import); - menubar->addMenu(menu_actions); + QMenu* menu_export = new QMenu(tr("&Export")); + menu_export->addAction(tr("Dump &MRAM"), this, &MemoryWidget::OnDumpMRAM); + menu_export->addAction(tr("Dump &ExRAM"), this, &MemoryWidget::OnDumpExRAM); + menu_export->addAction(tr("Dump &ARAM"), this, &MemoryWidget::OnDumpARAM); + menu_export->addAction(tr("Dump &FakeVMEM"), this, &MemoryWidget::OnDumpFakeVMEM); + menubar->addMenu(menu_export); sidebar_layout->setSpacing(1); sidebar->setLayout(sidebar_layout);