[WIP] Partial refactor of applying profile display UI

This commit is contained in:
Terry MacDonald
2020-10-04 23:01:03 +13:00
parent 227caa2230
commit 17cc302d17
12 changed files with 859 additions and 44 deletions

View File

@ -484,7 +484,8 @@ namespace HeliosPlus
IPCService.GetInstance().Status = InstanceStatus.Busy;
// Apply the Profile!
if (!ProfileRepository.ApplyProfile(shortcutToUse.ProfileToUse))
//if (!ProfileRepository.ApplyProfile(shortcutToUse.ProfileToUse))
if (!Program.ApplyProfile(shortcutToUse.ProfileToUse))
{
throw new Exception(Language.Cannot_change_active_profile);
}
@ -694,7 +695,8 @@ namespace HeliosPlus
// Change back to the original profile if it is different
if (!ProfileRepository.IsActiveProfile(rollbackProfile))
{
if (!ProfileRepository.ApplyProfile(rollbackProfile))
//if (!ProfileRepository.ApplyProfile(rollbackProfile))
if (!Program.ApplyProfile(rollbackProfile))
{
throw new Exception(Language.Cannot_change_active_profile);
}