mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Add logger to DisplayProfileForm
This commit is contained in:
parent
6bd9898ea8
commit
c10e000559
@ -21,6 +21,8 @@ namespace DisplayMagician.UIForms
|
|||||||
private ProfileAdaptor _profileAdaptor = new ProfileAdaptor();
|
private ProfileAdaptor _profileAdaptor = new ProfileAdaptor();
|
||||||
//public static Dictionary<string, bool> profileValidity = new Dictionary<string, bool>();
|
//public static Dictionary<string, bool> profileValidity = new Dictionary<string, bool>();
|
||||||
|
|
||||||
|
private static readonly NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
|
||||||
|
|
||||||
public DisplayProfileForm()
|
public DisplayProfileForm()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
@ -54,6 +56,8 @@ namespace DisplayMagician.UIForms
|
|||||||
// Apply the Profile
|
// Apply the Profile
|
||||||
if (ProfileRepository.ApplyProfile(_selectedProfile) == ApplyProfileResult.Successful)
|
if (ProfileRepository.ApplyProfile(_selectedProfile) == ApplyProfileResult.Successful)
|
||||||
{
|
{
|
||||||
|
logger.Error($"DisplayProfileForm/Apply_Click: Waiting 0.5 sec for the display to apply");
|
||||||
|
System.Threading.Thread.Sleep(500);
|
||||||
ChangeSelectedProfile(_selectedProfile);
|
ChangeSelectedProfile(_selectedProfile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user