Skip to content

Commit

Permalink
fix: don't use hardexpiry
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-is-cute committed Mar 21, 2024
1 parent 4349b26 commit fab639a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ await this.Plugin.AddDownloadAsync(new DownloadTask(
ErrorHelper.Handle(ex, "Error opening prompt window");
notif.Type = NotificationType.Error;
notif.Content = "Error opening installer prompt.";
notif.HardExpiry = DateTime.UtcNow + TimeSpan.FromSeconds(5);
notif.InitialDuration = TimeSpan.FromSeconds(5);
}
});

Expand Down Expand Up @@ -270,7 +270,7 @@ await this.Plugin.AddDownloadAsync(new DownloadTask(
ErrorHelper.Handle(ex, "Error opening prompt window");
notif.Type = NotificationType.Error;
notif.Content = "Error opening installer prompt.";
notif.HardExpiry = DateTime.UtcNow + TimeSpan.FromSeconds(5);
notif.InitialDuration = TimeSpan.FromSeconds(5);
}
});

Expand Down Expand Up @@ -348,7 +348,7 @@ await this.Plugin.AddDownloadAsync(new DownloadTask(
ErrorHelper.Handle(ex, "Error opening prompt window");
notif.Type = NotificationType.Error;
notif.Content = "Error opening installer prompt.";
notif.HardExpiry = DateTime.UtcNow + TimeSpan.FromSeconds(5);
notif.InitialDuration = TimeSpan.FromSeconds(5);
}
});

Expand Down

0 comments on commit fab639a

Please sign in to comment.