Переглянути джерело

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();