Send IPC OnProfileUpdate when currently used template was changed in editor, fix Profile.GetActiveProfileIdOnCharacter IPC ignoring DefaultLocalPlayerProfile

This commit is contained in:
RisaDev
2024-11-23 19:41:42 +03:00
parent 4ee62205ff
commit e4e10e0f9a
6 changed files with 82 additions and 14 deletions

View File

@@ -341,8 +341,7 @@ public class BoneEditorPanel
ImGui.SetCursorPos(new Vector2(xPos, yPos));
if (ImGui.Button("Save", buttonWidth))
{
_editorManager.SaveChanges();
_editorManager.DisableEditor();
_editorManager.SaveChangesAndDisableEditor();
ImGui.CloseCurrentPopup();
}
@@ -350,8 +349,7 @@ public class BoneEditorPanel
ImGui.SameLine();
if (ImGui.Button("Save as a copy", buttonWidth))
{
_editorManager.SaveChanges(true);
_editorManager.DisableEditor();
_editorManager.SaveChangesAndDisableEditor(true);
ImGui.CloseCurrentPopup();
}