mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Workshop - UI tweaks
This commit is contained in:
1 parent
9c6d7329a6
commit
742496b13d
4 files changed
+5
-8
No files matched your search
@@ -55,13 +55,12 @@ public class WorkshopService : IWorkshopService
|
||||
return new IWorkshopService.WorkshopStatus(false, e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
/// <param name="cancellationToken"></param>
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> ValidateWorkshopStatus(CancellationToken cancellationToken)
|
||||
{
|
||||
IWorkshopService.WorkshopStatus status = await GetWorkshopStatus(cancellationToken);
|
||||
if (!status.IsReachable)
|
||||
if (!status.IsReachable && !cancellationToken.IsCancellationRequested)
|
||||
await _router.Navigate($"workshop/offline/{status.Message}");
|
||||
return status.IsReachable;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user