2nd parse of the display profile form

This commit is contained in:
Terry MacDonald 2021-08-30 12:36:34 +12:00
parent b374850bfe
commit 838ebff43b

View File

@ -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();
}
}
} }
} }