From 68213eb5a07d08f489ec2495f5c8d8b5deb1dee8 Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Fri, 19 Jul 2024 04:16:43 +0200 Subject: [PATCH] touch tutorial only if touch used --- client/windows/CTutorialWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/windows/CTutorialWindow.cpp b/client/windows/CTutorialWindow.cpp index a53cb7de4..555e21120 100644 --- a/client/windows/CTutorialWindow.cpp +++ b/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();