/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

View File

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