mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user