mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix "restart needed" dialog after first config (fixes #1601)
This commit is contained in:
parent
f9b1c960cb
commit
b49f072c94
1
CHANGES
1
CHANGES
|
@ -102,6 +102,7 @@ Other fixes:
|
|||
- Qt: Fix scrollbar arrows in memory view (fixes mgba.io/i/1558)
|
||||
- Qt: Fix several cases where shader selections don't get saved
|
||||
- Qt: Fix division by zero error in invalid TilePainter state
|
||||
- Qt: Fix "restart needed" dialog after first config (fixes mgba.io/i/1601)
|
||||
Misc:
|
||||
- GB Memory: Support manual SRAM editing (fixes mgba.io/i/1580)
|
||||
- SDL: Use controller GUID instead of name
|
||||
|
|
|
@ -472,9 +472,12 @@ void SettingsView::updateConfig() {
|
|||
}
|
||||
|
||||
QVariant cameraDriver = m_ui.cameraDriver->itemData(m_ui.cameraDriver->currentIndex());
|
||||
if (cameraDriver != m_controller->getQtOption("cameraDriver")) {
|
||||
QVariant oldCameraDriver = m_controller->getQtOption("cameraDriver");
|
||||
if (cameraDriver != oldCameraDriver) {
|
||||
m_controller->setQtOption("cameraDriver", cameraDriver);
|
||||
emit cameraDriverChanged();
|
||||
if (cameraDriver.toInt() != static_cast<int>(InputController::CameraDriver::NONE) || !oldCameraDriver.isNull()) {
|
||||
emit cameraDriverChanged();
|
||||
}
|
||||
}
|
||||
|
||||
QVariant camera = m_ui.camera->itemData(m_ui.camera->currentIndex());
|
||||
|
|
Loading…
Reference in New Issue