mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-15 15:19:57 +00:00
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user