Update to DisplayProfileForm

This commit is contained in:
Terry MacDonald 2021-08-27 17:55:59 +12:00
parent 293ca14730
commit b51aefa0ac

View File

@ -54,7 +54,7 @@ namespace DisplayMagician.UIForms
}
// Apply the Profile
if (Program.ApplyProfile(_selectedProfile) == ApplyProfileResult.Successful)
if (ProfileRepository.ApplyProfile(_selectedProfile) == ApplyProfileResult.Successful)
{
ChangeSelectedProfile(_selectedProfile);
}
@ -555,7 +555,7 @@ namespace DisplayMagician.UIForms
string displayProfileUUID = e.Name;
ProfileItem chosenProfile = ProfileRepository.GetProfile(displayProfileUUID);
if (chosenProfile is ProfileItem)
Program.ApplyProfile(chosenProfile);
ProfileRepository.ApplyProfile(chosenProfile);
}
}