Skip to content

Commit

Permalink
Update configuration for KeepSystray Icon
Browse files Browse the repository at this point in the history
See #128
  • Loading branch information
Antoine Aflalo committed Dec 8, 2016
1 parent ad14fd9 commit 1b07605
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,13 @@ public interface ISoundSwitchConfiguration : IConfiguration
bool ChangeCommunications { get; set; }
uint UpdateCheckInterval { get; set; }

/*TODO: Remove in next VERSION (3.7.0)*/
[Obsolete("Use the NotificationSettings instead.")]
bool DisplayNotifications { get; set; }

bool MigratedSelectedDeviceLists { get; set; }
NotificationTypeEnum NotificationSettings { get; set; }
bool SubscribedBetaVersion { get; set; }
string CustomNotificationFilePath { get; set; }
UpdateState UpdateState { get; set; }
TooltipInfoTypeEnum TooltipInfo { get; set; }
DeviceCyclerTypeEnum CyclerType { get; set; }
bool KeepSystrayIcon { get; set; }
}
}
12 changes: 2 additions & 10 deletions SoundSwitch/Framework/Configuration/SoundSwitchConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public SoundSwitchConfiguration()
SubscribedBetaVersion = false;
TooltipInfo = TooltipInfoTypeEnum.Playback;
CyclerType = DeviceCyclerTypeEnum.Available;
KeepSystrayIcon = false;

}

Expand All @@ -60,19 +61,10 @@ public SoundSwitchConfiguration()
public UpdateState UpdateState { get; set; }
public TooltipInfoTypeEnum TooltipInfo { get; set; }
public DeviceCyclerTypeEnum CyclerType { get; set; }

/*TODO: Remove in next VERSION (3.7.0)*/
[Obsolete("Use the NotificationSettings instead.")]
public bool DisplayNotifications
{
get { return NotificationSettings == NotificationTypeEnum.DefaultWindowsNotification; }
set {
NotificationSettings = value ? NotificationTypeEnum.DefaultWindowsNotification : NotificationTypeEnum.NoNotification;
}
}
public NotificationTypeEnum NotificationSettings { get; set; }
public bool SubscribedBetaVersion { get; set; }
public string CustomNotificationFilePath { get; set; }
public bool KeepSystrayIcon { get; set; }


//Needed by Interface
Expand Down

0 comments on commit 1b07605

Please sign in to comment.