public void Save(bool callback = false)
 {
     if (!callback)
     {
         _saving = true;
     }
     ConfigSerializer.SaveConfig(this, FilePath);
 }
Esempio n. 2
0
 public void Save()
 {
     _saving = true;
     ConfigSerializer.SaveConfig(this, FilePath);
     // sets saving back to false cause SaveConfig wont write the file at all if nothing has changed
     // and if so the FileWatcher would not get triggered so saving would stuck at true
     _saving = false;
 }
Esempio n. 3
0
        void ShowSettings()
        {
            var viewModel = new EditConfigViewModel(Config);

            if (SettingsDialogService.ShowDialog(MessageButton.OKCancel, "Settings", viewModel) == MessageResult.OK)
            {
                viewModel.UpdateConfig();
                ConfigSerializer.SaveConfig(Config);
                Initialize();
                UpdateAppearance();
            }
        }
Esempio n. 4
0
 public void Save()
 {
     _saving = true;
     ConfigSerializer.SaveConfig(this, FilePath);
     _saving = false;
 }
Esempio n. 5
0
 public void Save()
 {
     _saving = true;
     ConfigSerializer.SaveConfig(this, FilePath);
     Console.WriteLine(Plugin.modLog + "BeFit UserConfigs Saved");
 }