public void SavePreferences(PersonalPreferences personalPrefs, ProjectPreferences projectPrefs) { PersonalPrefs = personalPrefs.Clone(); ProjectPrefs = projectPrefs.Clone(); EditorPrefs.SetString(PERSONAL_PREFERENCES_KEY, JsonUtility.ToJson(PersonalPrefs)); File.WriteAllText(PROJECT_PREFERENCES_PATH, JsonUtility.ToJson(ProjectPrefs, true)); SVNContextMenusManager.SetupContextType(PersonalPrefs.ContextMenusClient); PreferencesChanged?.Invoke(); }
private static void OnPreferencesChanged(Preferences pref) { PreferencesChanged?.Invoke(null, pref); }