add quit button to shutdown editor

This commit is contained in:
scawful
2024-05-28 17:11:07 -04:00
parent 2d383d0243
commit 092ca78a6e
2 changed files with 7 additions and 2 deletions

View File

@@ -244,7 +244,12 @@ void Controller::OnInput() {
HandleMouseMovement(wheel);
}
void Controller::OnLoad() { PRINT_IF_ERROR(master_editor_.Update()); }
void Controller::OnLoad() {
if (master_editor_.quit()) {
active_ = false;
}
PRINT_IF_ERROR(master_editor_.Update());
}
void Controller::DoRender() const {
ImGui::Render();