/// <summary> /// Loads the database of presets & adds Quaver defaults /// </summary> public static void Load() { CreateTable(); InitializeDefaultPresetWindows(); Presets = Presets.Concat(FetchAllWindows()).ToList(); Selected = new Bindable <JudgementWindows>(Standard) { Value = Standard }; // Find value from config foreach (var window in Presets) { if (ConfigManager.JudgementWindows.Value != window.Name) { continue; } Selected.Value = window; break; } Selected.ValueChanged += (sender, args) => ConfigManager.JudgementWindows.Value = args.Value.Name; }