From 838ebff43bbb7fe8c54e496f1cdd44f01b8bcafd Mon Sep 17 00:00:00 2001 From: Terry MacDonald Date: Mon, 30 Aug 2021 12:36:34 +1200 Subject: [PATCH] 2nd parse of the display profile form --- displaymagician/uiforms/displayprofileform.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/displaymagician/uiforms/displayprofileform.cs b/displaymagician/uiforms/displayprofileform.cs index 002f0d2..02bd94a 100644 --- a/displaymagician/uiforms/displayprofileform.cs +++ b/displaymagician/uiforms/displayprofileform.cs @@ -558,5 +558,17 @@ namespace DisplayMagician.UIForms } + private void btn_profile_settings_Click(object sender, EventArgs e) + { + ProfileSettingsForm profileSettingsForm = new ProfileSettingsForm(); + profileSettingsForm.Profile = _selectedProfile; + profileSettingsForm.ShowDialog(this); + // If the profile was previously saved and is now changed then save all the profiles + // otherwise we'll save it only when the user wants to save this profile. + if (_saveOrRenameMode == "rename" && profileSettingsForm.ProfileSettingChanged) + { + ProfileRepository.SaveProfiles(); + } + } } } \ No newline at end of file