tdf#57414 autorecovery: if no recovery doc, remove from RecoveryList

The document has just been saved
(perhaps manually, perhaps automatically)
and so the recovery ODF files are being removed.

So remove from RecoveryList since there is nothing
recoverable at this point.

Sure the document is open, and perhaps
there is even a modification already,
but if there are no recovery files available,
then why display it to the user?

Change-Id: I309cd7df573c960f75c2240c8b5cf171fc1d95be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155059
Tested-by: Justin Luth <jluth@mail.com>
Reviewed-by: Justin Luth <jluth@mail.com>
This commit is contained in:
Justin Luth 2023-07-29 22:22:20 -04:00 committed by Mike Kaganski
parent 2a9e83a673
commit d16d86685a

View file

@ -2662,7 +2662,8 @@ void AutoRecovery::implts_markDocumentAsSaved(const css::uno::Reference< css::fr
} /* SAFE */
implts_flushConfigItem(aInfo);
// no need to recover a saved document until modified and new recovery file is created
implts_flushConfigItem(aInfo, /*bRemoveIt=*/true);
aCacheLock.unlock();