Added DisplayIdentifiers to Profile storage

DisplayIdentifiers are the minimum GPU/Display
that will allow us to identify whether a profile
will actually work. We look for the same DisplayIdentifiers
or a subset of them to determine whether a profile
will be valid to show. This is different from the data
stored under DisplayTarget, as that is used for detailed
compatibility....
This commit is contained in:
Terry MacDonald
2020-08-19 18:55:50 +12:00
parent 32ad405904
commit 0912ee5896
5 changed files with 198 additions and 32 deletions

View File

@ -156,7 +156,8 @@ namespace HeliosPlus.UIForms
// Load all the profiles to prepare things
//_savedProfiles = ProfileRepository.AllProfiles;
// Update the Current Profile
ProfileRepository.UpdateCurrentProfile();
//ProfileRepository.UpdateCurrentProfile();
ProfileRepository.GetActiveProfile();
// Change to the current selected Profile
ChangeSelectedProfile(ProfileRepository.GetActiveProfile());
// Refresh the Profile UI
@ -322,7 +323,8 @@ namespace HeliosPlus.UIForms
private void btn_view_current_Click(object sender, EventArgs e)
{
// Reload the profiles in case we swapped to another program to change it
ProfileRepository.UpdateCurrentProfile();
//ProfileRepository.UpdateCurrentProfile();
ProfileRepository.GetActiveProfile();
// Change to the current selected Profile
ChangeSelectedProfile(ProfileRepository.GetActiveProfile());
// Refresh the Profile UI