Vacuum bee files on saving (fixes #99)

This commit is contained in:
Rebecca Breu 2024-04-04 19:38:44 +02:00
parent c64385b2c0
commit 82787d08aa
2 changed files with 2 additions and 0 deletions

View file

@ -30,6 +30,7 @@ Fixed
* Fixed threading issue when importing images (causing potential
hangs/weird behaviour)
* Fixed an intermittent crash when invoking New Scene
* Fixed bee files hanging on to disk space of deleted images (issue #99)

View file

@ -261,6 +261,7 @@ class SQLiteIO:
if self.worker.canceled:
break
self.delete_items(to_delete)
self.ex('VACUUM')
self.connection.commit()
if self.worker:
self.worker.finished.emit(self.filename, [])