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 69c068c551
commit b75812a99d
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,8 @@
0.6.1: (Future) 0.6.1: (Future)
Bugfixes: Bugfixes:
- Python: Fix importing .gb or .gba before .core - Python: Fix importing .gb or .gba before .core
Misc:
- Qt: Don't rebuild library view if style hasn't changed
0.6.0: (2017-07-16) 0.6.0: (2017-07-16)
Features: Features:

View File

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