mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +01:00
more fixes
This commit is contained in:
parent
5233ce860b
commit
104cc53191
6 changed files with 38 additions and 14 deletions
|
|
@ -57,6 +57,7 @@ public sealed class CacheMonitor : DisposableMediatorSubscriberBase
|
|||
if (configService.Current.HasValidSetup())
|
||||
{
|
||||
StartMareWatcher(configService.Current.CacheFolder);
|
||||
InvokeScan();
|
||||
}
|
||||
|
||||
var token = _periodicCalculationTokenSource.Token;
|
||||
|
|
@ -350,11 +351,11 @@ public sealed class CacheMonitor : DisposableMediatorSubscriberBase
|
|||
{
|
||||
TotalFiles = 0;
|
||||
_currentFileProgress = 0;
|
||||
_scanCancellationTokenSource?.Cancel();
|
||||
_scanCancellationTokenSource = new CancellationTokenSource();
|
||||
_scanCancellationTokenSource = _scanCancellationTokenSource?.CancelRecreate() ?? new CancellationTokenSource();
|
||||
var token = _scanCancellationTokenSource.Token;
|
||||
_ = Task.Run(async () =>
|
||||
{
|
||||
Logger.LogDebug("Starting Full File Scan");
|
||||
TotalFiles = 0;
|
||||
_currentFileProgress = 0;
|
||||
while (_dalamudUtil.IsOnFrameworkThread)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue