From 54d18eb02f4d99fa5d55ccc0374100bd8fc515ff Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sat, 27 Feb 2021 23:40:14 +0800 Subject: [PATCH] qt: Fix skillLevel do not have default value (20) --- src/ui/qt/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/qt/game.cpp b/src/ui/qt/game.cpp index ab696a15..4a603c2f 100644 --- a/src/ui/qt/game.cpp +++ b/src/ui/qt/game.cpp @@ -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());