Qt: Fix LibraryController initialization (fixes #1324)

This commit is contained in:
Vicki Pfau 2019-09-28 20:15:24 -07:00
parent 81fd7e3c1a
commit 65b553022c
2 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@ Other fixes:
- Qt: Only show emulator restart warning once per settings saving
- FFmpeg: Drain recording buffers
- Shaders: Fix gba-color shader resolution (fixes mgba.io/i/1435)
- Qt: Fix LibraryController initialization (fixes mgba.io/i/1324)
Misc:
- GBA Savedata: EEPROM performance fixes
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash

View File

@ -51,6 +51,7 @@ LibraryController::LibraryController(QWidget* parent, const QString& path, Confi
m_libraryGrid = std::make_unique<LibraryGrid>(this);
addWidget(m_libraryGrid->widget());
m_currentStyle = LibraryStyle::STYLE_TREE; // Make sure setViewStyle does something
setViewStyle(LibraryStyle::STYLE_LIST);
refresh();
}