add #include format

This commit is contained in:
2026-04-08 20:00:13 -04:00
parent 0b91382f0f
commit 378a7692e2
16 changed files with 61 additions and 3 deletions
+6
View File
@@ -1,6 +1,9 @@
#include "configure.hpp"
#include "imgui_.hpp"
#include "log.hpp"
#include "path_.hpp"
#include "sdl.hpp"
using namespace anm2ed::types;
@@ -180,6 +183,7 @@ namespace anm2ed::imgui::wizard
shortcut(manager.chords[SHORTCUT_CONFIRM]);
if (ImGui::Button(localize.get(BASIC_SAVE), widgetSize))
{
auto settingsPath = util::sdl::preferences_directory_get() / "settings.ini";
settings = temporary;
ImGui::GetIO().KeyRepeatDelay = settings.keyboardRepeatDelay;
@@ -193,6 +197,8 @@ namespace anm2ed::imgui::wizard
for (auto& document : manager.documents)
document.snapshots.apply_limit();
settings.save(settingsPath, ImGui::SaveIniSettingsToMemory(nullptr));
isSet = true;
}
ImGui::SetItemTooltip("%s", localize.get(TOOLTIP_SETTINGS_SAVE));