Default config

This commit is contained in:
2025-04-04 17:27:31 -04:00
parent c5a0ec15e9
commit 1ccab9d518
4 changed files with 36 additions and 0 deletions

View File

@@ -400,6 +400,16 @@ extern "C" void menu_render(void) {
ImGui::Separator();
if (ImGui::Button("Set as Default", ImVec2(120, 30))) {
if (settings_set_as_default()) {
ImGui::OpenPopup("DefaultSaved");
} else {
ImGui::OpenPopup("ConfigError");
}
}
ImGui::SameLine();
if (ImGui::Button("Delete Config", ImVec2(120, 30))) {
ImGui::OpenPopup("ConfirmDelete");
}
@@ -470,6 +480,15 @@ extern "C" void menu_render(void) {
ImGui::EndPopup();
}
if (ImGui::BeginPopupModal("DefaultSaved", NULL, ImGuiWindowFlags_AlwaysAutoResize)) {
ImGui::Text("Current settings saved as default configuration!");
ImGui::Text("These settings will load automatically on startup.");
if (ImGui::Button("OK", ImVec2(120, 0))) {
ImGui::CloseCurrentPopup();
}
ImGui::EndPopup();
}
if (ImGui::BeginPopupModal("ConfigError", NULL, ImGuiWindowFlags_AlwaysAutoResize)) {
ImGui::Text("Error with configuration operation!");
ImGui::Text("Check console for details.");