diff options
Diffstat (limited to 'core/src/UI/UI_MainWindow.cpp')
-rw-r--r-- | core/src/UI/UI_MainWindow.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/core/src/UI/UI_MainWindow.cpp b/core/src/UI/UI_MainWindow.cpp index b1bee7d..1838aec 100644 --- a/core/src/UI/UI_MainWindow.cpp +++ b/core/src/UI/UI_MainWindow.cpp @@ -21,7 +21,7 @@ void ProjectTab_Normal() auto& gs = GlobalStates::GetInstance(); auto& uis = UIState::GetInstance(); - if (ImGui::Button(ls->CloseActiveProject.Get())) { + if (ImGui::Button(ls->Close.Get())) { uis.CloseCurrentProject(); return; } @@ -93,9 +93,9 @@ void ProjectTab_NoProject() uis.SetCurrentProject(std::make_unique<Project>(std::move(dirPath), std::move(projectName))); // Dialog just got closed, reset states - projectName = ""; - dirName = ""; - dirPath = fs::path{}; + projectName.clear(); + dirName.clear(); + dirPath.clear(); dirNameIsValid = false; } @@ -231,6 +231,11 @@ void UI::MainWindow() ImGui::EndTabItem(); } + if (ImGui::BeginTabItem(ls->TemplatesTab.Get())) { + UI::TemplatesTab(); + ImGui::EndTabItem(); + } + endTab: ImGui::EndTabBar(); } |