Increase duration of startup notifications (Closes #1408) (#1410)

This commit is contained in:
2026-02-10 05:01:37 -08:00
parent a40c28711e
commit 20d0bade79
8 changed files with 23 additions and 10 deletions
@@ -1,6 +1,7 @@
using System.Extensions.Core;
using Daybreak.Linux.Services.Startup.Notifications;
using Daybreak.Linux.Services.Wine;
using Daybreak.Shared;
using Daybreak.Shared.Models;
using Daybreak.Shared.Services.Notifications;
using Microsoft.Extensions.Logging;
@@ -49,7 +50,7 @@ public sealed class SetupWinePrefixAction(
this.notificationService.NotifyInformation<WinePrefixSetupHandler>(
title: "Wine prefix setup required",
description: "Click here to initialize the Wine prefix for Guild Wars launching.",
expirationTime: DateTime.UtcNow + TimeSpan.FromSeconds(15)
expirationTime: Global.NotificationLongExpiration
);
}
}
@@ -1,5 +1,6 @@
using System.Extensions.Core;
using Daybreak.Linux.Services.Wine;
using Daybreak.Shared;
using Daybreak.Shared.Models.Notifications;
using Daybreak.Shared.Models.Notifications.Handling;
using Daybreak.Shared.Services.Notifications;
@@ -53,7 +54,7 @@ public sealed class WinePrefixSetupHandler(
this.notificationService.NotifyInformation(
title: "Wine prefix ready",
description: "Wine prefix has been initialized successfully. You can now launch Guild Wars.",
expirationTime: DateTime.UtcNow + TimeSpan.FromSeconds(5)
expirationTime: Global.NotificationLongExpiration
);
}
else
@@ -62,7 +63,7 @@ public sealed class WinePrefixSetupHandler(
this.notificationService.NotifyError(
title: "Wine prefix setup failed",
description: "Failed to initialize the Wine prefix. Check the logs for more details.",
expirationTime: DateTime.UtcNow + TimeSpan.FromSeconds(5)
expirationTime: Global.NotificationLongExpiration
);
}
}