mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
Updated task notification UI. Last message will stay on screen for an extra 3 seconds if there are no new messages.
This commit is contained in:
parent
53a7b92a64
commit
0d139f9c21
7 changed files with 77 additions and 58 deletions
|
@ -41,7 +41,7 @@ namespace NzbDrone.Core.Model.Notification
|
|||
/// <value>The percent complete.</value>
|
||||
public int PercentComplete
|
||||
{
|
||||
get { return Convert.ToInt32(Convert.ToDouble(ProgressValue)/Convert.ToDouble(ProgressMax)*100); }
|
||||
get { return Convert.ToInt32(Convert.ToDouble(ProgressValue) / Convert.ToDouble(ProgressMax) * 100); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -56,11 +56,30 @@ namespace NzbDrone.Core.Model.Notification
|
|||
/// <value>The progress value.</value>
|
||||
public int ProgressValue { get; set; }
|
||||
|
||||
private ProgressNotificationStatus _status;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the status.
|
||||
/// </summary>
|
||||
/// <value>The status.</value>
|
||||
public ProgressNotificationStatus Status { get; set; }
|
||||
public ProgressNotificationStatus Status
|
||||
{
|
||||
get { return _status; }
|
||||
set
|
||||
{
|
||||
if (value != ProgressNotificationStatus.InProgress)
|
||||
{
|
||||
CompletedTime = DateTime.Now;
|
||||
}
|
||||
_status = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets the completed time.
|
||||
/// </summary>
|
||||
public DateTime CompletedTime { get; private set; }
|
||||
|
||||
#region IDisposable Members
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue