conditional re-index
This commit is contained in:
parent
14e14ba9bd
commit
f29968f379
@ -3,7 +3,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<Version>6.0.6.1</Version>
|
||||
<Version>6.0.6.2</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@ -275,8 +275,9 @@ namespace LibationWinForms
|
||||
}
|
||||
|
||||
// in order: save to db, full reindex from db, refresh ui
|
||||
context.SaveChanges();
|
||||
ApplicationServices.SearchEngineCommands.FullReIndex();
|
||||
var changed = context.SaveChanges();
|
||||
if (changed > 0)
|
||||
ApplicationServices.SearchEngineCommands.FullReIndex();
|
||||
UserDefinedItem.BatchMode_Finalize();
|
||||
|
||||
// only do this after save changes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user