mirror of https://github.com/mgba-emu/mgba.git
Qt: Add recent game list clearing (closes #1380)
This commit is contained in:
parent
4cf401c391
commit
3976f8f273
1
CHANGES
1
CHANGES
|
@ -19,6 +19,7 @@ Features:
|
||||||
- GBA Cheats: Add support for loading EZ Flash-style cht files
|
- GBA Cheats: Add support for loading EZ Flash-style cht files
|
||||||
- Support for unlicensed Wisdom Tree Game Boy mapper
|
- Support for unlicensed Wisdom Tree Game Boy mapper
|
||||||
- Qt: Add export button for tile view (closes mgba.io/i/1507)
|
- 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:
|
Emulation fixes:
|
||||||
- GBA: All IRQs have 7 cycle delay (fixes mgba.io/i/539, mgba.io/i/1208)
|
- GBA: All IRQs have 7 cycle delay (fixes mgba.io/i/539, mgba.io/i/1208)
|
||||||
- GBA: Reset now reloads multiboot ROMs
|
- GBA: Reset now reloads multiboot ROMs
|
||||||
|
|
|
@ -1702,6 +1702,11 @@ void Window::appendMRU(const QString& fname) {
|
||||||
updateMRU();
|
updateMRU();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Window::clearMRU() {
|
||||||
|
m_mruFiles.clear();
|
||||||
|
updateMRU();
|
||||||
|
}
|
||||||
|
|
||||||
void Window::updateMRU() {
|
void Window::updateMRU() {
|
||||||
m_actions.clearMenu("mru");
|
m_actions.clearMenu("mru");
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
@ -1714,6 +1719,9 @@ void Window::updateMRU() {
|
||||||
}
|
}
|
||||||
m_config->setMRU(m_mruFiles);
|
m_config->setMRU(m_mruFiles);
|
||||||
m_config->write();
|
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_actions.rebuildMenu(menuBar(), this, *m_shortcutController);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -154,6 +154,7 @@ private:
|
||||||
void detachWidget(QWidget* widget);
|
void detachWidget(QWidget* widget);
|
||||||
|
|
||||||
void appendMRU(const QString& fname);
|
void appendMRU(const QString& fname);
|
||||||
|
void clearMRU();
|
||||||
void updateMRU();
|
void updateMRU();
|
||||||
|
|
||||||
void openView(QWidget* widget);
|
void openView(QWidget* widget);
|
||||||
|
|
Loading…
Reference in New Issue