public void Save(bool callback = false) { if (!callback) { _saving = true; } ConfigSerializer.SaveConfig(this, FilePath); }
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; }
void ShowSettings() { var viewModel = new EditConfigViewModel(Config); if (SettingsDialogService.ShowDialog(MessageButton.OKCancel, "Settings", viewModel) == MessageResult.OK) { viewModel.UpdateConfig(); ConfigSerializer.SaveConfig(Config); Initialize(); UpdateAppearance(); } }
public void Save() { _saving = true; ConfigSerializer.SaveConfig(this, FilePath); _saving = false; }
public void Save() { _saving = true; ConfigSerializer.SaveConfig(this, FilePath); Console.WriteLine(Plugin.modLog + "BeFit UserConfigs Saved"); }