public static void SaveAllSettingsAsync() { if (Settings != null) { Settings.SaveAsync(ApplicationConfigFilePath); } UploadersConfigSaveAsync(); if (HotkeysConfig != null) { HotkeysConfig.SaveAsync(HotkeysConfigFilePath); } }
public static void ResetSettings() { Settings = new ApplicationConfig(); DefaultTaskSettings = Settings.DefaultTaskSettings; UploadersConfig = new UploadersConfig(); HotkeysConfig = new HotkeysConfig(); if (File.Exists(GreenshotImageEditorConfigFilePath)) { File.Delete(GreenshotImageEditorConfigFilePath); } }
public static void SaveSettings() { if (Settings != null) { Settings.Save(ApplicationConfigFilePath); } if (UploadersConfig != null) { UploadersConfig.Save(UploadersConfigFilePath); } if (HotkeysConfig != null) { HotkeysConfig.Save(HotkeysConfigFilePath); } }
public static void LoadHotkeySettings() { HotkeysConfig = HotkeysConfig.Load(HotkeysConfigFilePath); }