Fix Refresh Data and Reload Files.

This commit is contained in:
Ottermandias 2023-04-01 23:01:56 +02:00
parent 577669b21f
commit e9ab9a71a8
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ public class ModFileEditor
public void Revert(Mod mod, ISubMod option)
{
_files.UpdatePaths(mod, option);
_files.UpdateAll(mod, option);
Changes = false;
}

View file

@ -369,7 +369,7 @@ public partial class ModEditWindow : Window, IDisposable
ImGui.SameLine();
if (ImGuiUtil.DrawDisabledButton("Refresh Data", width, "Refresh data for the current option.\nThis resets unsaved changes.", false))
_editor.LoadOption(_editor.GroupIdx, _editor.OptionIdx);
_editor.LoadMod(_editor.Mod!, _editor.GroupIdx, _editor.OptionIdx);
ImGui.SameLine();