mirror of https://github.com/mgba-emu/mgba.git
Qt: Don't rebuild library view if style hasn't changed
This commit is contained in:
parent
69c068c551
commit
b75812a99d
2
CHANGES
2
CHANGES
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue