public void SaveSettings() { EffectSettings?.Save(); if (!EffectEnabled) { return; } // Restart the effect if it's currently running to apply settings. MainManager.EffectManager.ChangeEffect(EffectModel); }
private void ProfileUpdater(object sender, PropertyChangedEventArgs e) { if (e.PropertyName != "SelectedProfile" && IsActive) { return; } EffectModel.Profile = ProfileEditor.SelectedProfile; ProfilePreviewModel.Profile = ProfileEditor.SelectedProfile; if (e.PropertyName != "SelectedProfile" || !ProfileEditor.ProfileViewModel.Activated || ProfileEditor.ProfileViewModel.SelectedProfile == null) { return; } ((WindowsProfileSettings)EffectSettings).LastProfile = ProfileEditor.ProfileViewModel.SelectedProfile.Name; EffectSettings.Save(); }