Skip to content

Commit

Permalink
Adds logging for change of RunAsStartup. See #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Aflalo committed Aug 24, 2015
1 parent b3fe8ba commit 07511e4
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions SoundSwitch/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,17 @@ public bool RunAtStartup
get { return AutoStart.IsAutoStarted(); }
set
{
if (value)
using (AppLogger.Log.InfoCall())
{
AutoStart.EnableAutoStart();
}
else
{
AutoStart.DisableAutoStart();
AppLogger.Log.Info("Set AutoStart: ", value);
if (value)
{
AutoStart.EnableAutoStart();
}
else
{
AutoStart.DisableAutoStart();
}
}
}
}
Expand Down

0 comments on commit 07511e4

Please sign in to comment.