Add IsLiberated option to search engine. Reindex search after download and decrypt
This commit is contained in:
parent
c0e955d5ef
commit
7b966f6962
3 changed files with 13 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue