Fixed DisplayProfileForm profile selection logic

Profile selection logic was running functions multiple
times which was resulting in a lot of extra delay
while using the DisplayProfileFOrm. These changes
streamline it and make it work a lot faster!
This commit is contained in:
terrymacdonald
2020-07-24 13:11:42 +12:00
parent e83a893640
commit f23ae340a7
5 changed files with 53 additions and 125 deletions

View File

@ -679,7 +679,7 @@ namespace HeliosPlus
}
private static bool ApplyProfile(ProfileItem profile)
public static bool ApplyProfile(ProfileItem profile)
{
// If we're already on the wanted profile then no need to change!
if (ProfileRepository.IsActiveProfile(profile))
@ -716,7 +716,7 @@ namespace HeliosPlus
}
}
public static void ApplyTopology(ProfileItem profile)
private static void ApplyTopology(ProfileItem profile)
{
Debug.Print("ShortcutRepository.ApplyTopology()");
if (profile == null)
@ -757,7 +757,7 @@ namespace HeliosPlus
}
}
public static void ApplyPathInfo(ProfileItem profile)
private static void ApplyPathInfo(ProfileItem profile)
{
Debug.Print("ShortcutRepository.ApplyPathInfo()");
if (profile == null)