/// <summary> /// Creates a new SettingsViewModel. /// </summary> public SettingsViewModel(IPluginSettings settings) { Settings = settings; DisplayedMealTypes = SettingsUtils.GetEnumPairs(Settings.DisplayedMealTypes, MealType.Unknown); _previousTarget = settings.PriceTarget; }