浏览代码

touch tutorial only if touch used

Laserlicht 1 年之前
父节点
当前提交
68213eb5a0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/windows/CTutorialWindow.cpp

+ 1 - 1
client/windows/CTutorialWindow.cpp

@@ -67,7 +67,7 @@ void CTutorialWindow::setContent()
 
 void CTutorialWindow::openWindowFirstTime(const TutorialMode & m)
 {
-	if(GH.input().hasTouchInputDevice() && !persistentStorage["gui"]["tutorialCompleted" + std::to_string(m)].Bool())
+	if(GH.input().getCurrentInputModus() == InputModus::TOUCH && !persistentStorage["gui"]["tutorialCompleted" + std::to_string(m)].Bool())
 	{
 		if(LOCPLINT)
 			LOCPLINT->showingDialog->setBusy();