mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-06-02 02:09:57 -04:00
Use SohImGui::RequestCvarSaveOnNextTick
This commit is contained in:
@@ -518,7 +518,7 @@ void DrawNotes(bool resizeable = false) {
|
||||
ItemTrackerNotes::TrackerNotesInputTextMultiline("##ItemTrackerNotes", &itemTrackerNotes, size, ImGuiInputTextFlags_AllowTabInput);
|
||||
if (ImGui::IsItemDeactivatedAfterEdit() && IsValidSaveFile()) {
|
||||
CVar_SetString(("gItemTrackerNotes" + std::to_string(gSaveContext.fileNum)).c_str(), std::string(std::begin(itemTrackerNotes), std::end(itemTrackerNotes)).c_str());
|
||||
SohImGui::needs_save = true;
|
||||
SohImGui::RequestCvarSaveOnNextTick();
|
||||
}
|
||||
ImGui::EndGroup();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user