Example #1
0
 public void Save()
 {
     if (Professionbuddy.Instance.CurrentProfile != null)
     {
         bool hasGlobalSettings    = SettingsDictionary.Any(setting => setting.Value.Global);
         bool hasCharacterSettings = SettingsDictionary.Any(setting => !setting.Value.Global);
         if (hasGlobalSettings)
         {
             SaveGlobalSettings();
         }
         if (hasCharacterSettings)
         {
             SaveCharacterSettings();
         }
     }
 }