qt: Fix skillLevel do not have default value (20)

This commit is contained in:
Calcitem 2021-02-27 23:40:14 +08:00
parent ef7653005e
commit 54d18eb02f
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ void Game::loadSettings()
setFixWindowSize(empty ? false : settings->value("Options/FixWindowSize").toBool());
setSound(empty ? true : settings->value("Options/Sound").toBool());
setAnimation(empty ? true : settings->value("Options/Animation").toBool());
setSkillLevel(empty ? true : settings->value("Options/SkillLevel").toInt());
setSkillLevel(empty ? 20 : settings->value("Options/SkillLevel").toInt());
setShuffling(empty ? true : settings->value("Options/Shuffling").toBool());
setResignIfMostLose(empty ? false : settings->value("Options/ResignIfMostLose").toBool());
setOpeningBook(empty ? false : settings->value("Options/OpeningBook").toBool());