From b51aefa0ac7357fdec93bdf696335b7805438fd3 Mon Sep 17 00:00:00 2001 From: Terry MacDonald Date: Fri, 27 Aug 2021 17:55:59 +1200 Subject: [PATCH] Update to DisplayProfileForm --- DisplayMagician/UIForms/DisplayProfileForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DisplayMagician/UIForms/DisplayProfileForm.cs b/DisplayMagician/UIForms/DisplayProfileForm.cs index ec421a4..fce1b90 100644 --- a/DisplayMagician/UIForms/DisplayProfileForm.cs +++ b/DisplayMagician/UIForms/DisplayProfileForm.cs @@ -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); } }