impr: Close tutorial view when a tutorial is started

This commit is contained in:
WerWolv
2023-12-20 15:26:45 +01:00
parent e2ae567b9f
commit e3e117a14e
2 changed files with 19 additions and 17 deletions

View File

@@ -53,6 +53,7 @@ namespace hex::plugin::builtin {
ImGui::BeginDisabled(currTutorial != tutorials.end());
if (ImGuiExt::DimmedButton("hex.builtin.view.tutorials.start"_lang, ImVec2(ImGui::GetContentRegionAvail().x, 0))) {
TutorialManager::startTutorial(m_selectedTutorial->getUnlocalizedName());
this->getWindowOpenState() = false;
}
ImGui::EndDisabled();
}