/mare rescan to force a rescan (#44)

This commit is contained in:
Fishergoatman 2023-02-16 18:09:19 +01:00 committed by GitHub
parent 6457a1fe9a
commit 173cef056f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,6 +197,10 @@ public class MarePlugin : MediatorSubscriberBase, IDisposable
{
_serviceProvider.GetRequiredService<GposeUi>().Toggle();
}
else if (string.Equals(splitArgs[0], "rescan", StringComparison.OrdinalIgnoreCase))
{
_serviceProvider.GetRequiredService<PeriodicFileScanner>().InvokeScan(forced: true);
}
}
private void OpenUi()