Add IsLiberated option to search engine. Reindex search after download and decrypt

This commit is contained in:
Robert McRackan 2021-03-31 21:50:32 -04:00
parent c0e955d5ef
commit 7b966f6962
3 changed files with 13 additions and 1 deletions

View file

@ -81,9 +81,17 @@ namespace LibationWinForms.BookLiberation
backupBook.DownloadPdf.Completed += completedAction;
}
// enables search engine to index for things like "IsLiberated"
backupBook.DownloadBook.Completed += reindex;
backupBook.DecryptBook.Completed += reindex;
backupBook.DownloadPdf.Completed += reindex;
return backupBook;
}
private static async void reindex(object sender, LibraryBook e)
=> await Task.Run(() => ApplicationServices.SearchEngineCommands.FullReIndex());
private static (AutomatedBackupsForm, LogMe) attachToBackupsForm(BackupBook backupBook)
{
#region create form and logger