[studio] Make rename file give error message if the file already exists
All checks were successful
Build / build (push) Successful in 3m32s

This commit is contained in:
2025-01-27 00:54:58 -06:00
parent 2286238abc
commit 95256a9a0d
3 changed files with 21 additions and 7 deletions

View File

@@ -64,13 +64,11 @@ PopupResponse PopupControlsOkCancel(
ImGui::Separator();
ImGui::SetCursorPosX(popupWidth - 118);
if (ImGui::Button(ok.c_str(), btnSz)) {
ImGui::CloseCurrentPopup();
popupOpen = false;
out = PopupResponse::OK;
}
ImGui::SameLine();
if (ImGui::IsKeyDown(ImGuiKey_Escape) || ImGui::Button(cancel.c_str(), btnSz)) {
ImGui::CloseCurrentPopup();
popupOpen = false;
out = PopupResponse::Cancel;
}