public FConfig() { if (File.Exists(jsonPath)) { Log.Information("[FConfig][Entry] Config file found, trying to load..."); FConfig.Load(); } else { Log.Warning("[FConfig][Entry] Config not file found, trying to create blank..."); FConfig.Save(true); //Save blank/null values } }
private void Window_Closing(object sender, CancelEventArgs e) { FConfig.Save(); }