all repos — mgba @ 3976f8f2739019237269b03e5fdc3c6ef9ae0f63

mGBA Game Boy Advance Emulator

Qt: Add recent game list clearing (closes #1380)
Vicki Pfau vi@endrift.com
Sun, 25 Aug 2019 19:29:18 -0700
commit

3976f8f2739019237269b03e5fdc3c6ef9ae0f63

parent

4cf401c3910f8a9cce6de621f555d29f5b20cb57

3 files changed, 10 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -19,6 +19,7 @@ - Cheats: Add support for loading Libretro-style cht files

- GBA Cheats: Add support for loading EZ Flash-style cht files - Support for unlicensed Wisdom Tree Game Boy mapper - Qt: Add export button for tile view (closes mgba.io/i/1507) + - Qt: Add recent game list clearing (closes mgba.io/i/1380) Emulation fixes: - GBA: All IRQs have 7 cycle delay (fixes mgba.io/i/539, mgba.io/i/1208) - GBA: Reset now reloads multiboot ROMs
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -1702,6 +1702,11 @@ }

updateMRU(); } +void Window::clearMRU() { + m_mruFiles.clear(); + updateMRU(); +} + void Window::updateMRU() { m_actions.clearMenu("mru"); int i = 0;

@@ -1714,6 +1719,9 @@ ++i;

} m_config->setMRU(m_mruFiles); m_config->write(); + m_actions.addSeparator("mru"); + m_actions.addAction(tr("Clear"), "resetMru", this, &Window::clearMRU, "mru"); + m_actions.rebuildMenu(menuBar(), this, *m_shortcutController); }
M src/platform/qt/Window.hsrc/platform/qt/Window.h

@@ -154,6 +154,7 @@ void attachWidget(QWidget* widget);

void detachWidget(QWidget* widget); void appendMRU(const QString& fname); + void clearMRU(); void updateMRU(); void openView(QWidget* widget);