Skip to content

Commit

Permalink
fixed config files not saving when edited
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlucerne committed Jul 14, 2022
1 parent e6277f3 commit f3fefe6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Editor/ModIO.EditorCode/SettingsAssetEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ public override void OnInspectorGUI()
}
}

EditorUtility.SetDirty(this);
EditorUtility.SetDirty(myTarget);
if(GUI.changed)
{
AssetDatabase.Refresh();
EditorUtility.SetDirty(myTarget);
AssetDatabase.SaveAssets();
}
}

}
Expand Down

0 comments on commit f3fefe6

Please sign in to comment.