Qt: Don't rebuild library view if style hasn't changed

This commit is contained in:
Vicki Pfau 2017-07-21 14:27:17 -07:00
parent 1ea2a6597e
commit fa0944c530
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Misc:
- GBA Timer: Use global cycles for timers
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
- All: Make FIXED_ROM_BUFFER an option instead of 3DS-only
- Qt: Don't rebuild library view if style hasn't changed
0.6.0: (2017-07-16)
Features:

View File

@ -83,6 +83,9 @@ LibraryController::~LibraryController() {
}
void LibraryController::setViewStyle(LibraryStyle newStyle) {
if (m_currentStyle == newStyle) {
return;
}
m_currentStyle = newStyle;
AbstractGameList* newCurrentList = nullptr;