mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
touch tutorial only if touch used
This commit is contained in:
parent
26b164b7ca
commit
68213eb5a0
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user