mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fix loading of "true fullscreen" option in launcher
This commit is contained in:
@@ -68,12 +68,13 @@ void CSettingsView::loadSettings()
|
|||||||
ui->comboBoxShowIntro->setCurrentIndex(settings["video"]["showIntro"].Bool());
|
ui->comboBoxShowIntro->setCurrentIndex(settings["video"]["showIntro"].Bool());
|
||||||
|
|
||||||
#ifdef Q_OS_IOS
|
#ifdef Q_OS_IOS
|
||||||
ui->comboBoxFullScreen->setCurrentIndex(true);
|
ui->comboBoxFullScreen->setCurrentIndex(1);
|
||||||
ui->comboBoxFullScreen->setDisabled(true);
|
ui->comboBoxFullScreen->setDisabled(true);
|
||||||
#else
|
#else
|
||||||
ui->comboBoxFullScreen->setCurrentIndex(settings["video"]["fullscreen"].Bool());
|
|
||||||
if (settings["video"]["realFullscreen"].Bool())
|
if (settings["video"]["realFullscreen"].Bool())
|
||||||
ui->comboBoxFullScreen->setCurrentIndex(2);
|
ui->comboBoxFullScreen->setCurrentIndex(2);
|
||||||
|
else
|
||||||
|
ui->comboBoxFullScreen->setCurrentIndex(settings["video"]["fullscreen"].Bool());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ui->comboBoxFriendlyAI->setCurrentText(QString::fromStdString(settings["server"]["friendlyAI"].String()));
|
ui->comboBoxFriendlyAI->setCurrentText(QString::fromStdString(settings["server"]["friendlyAI"].String()));
|
||||||
|
Reference in New Issue
Block a user