open one or more tabs with the content of this ZIM file
unlink the ZIM file
close the app
re-open the app
The problem:
We are saving the tabs data separately from the ZIM files, and once the ZIM file is unlinked, we try to restore these tabs.
In most cases we will only receive a pop-up, that the content is not available, which is not user friendly, the bigger problem is that in rare cases it can also crash the app.
Solution:
Remove the tab data when the user closes the tab. This wasn't fully working so far on macOS, and we were storing lots of unused tabs in the DB
make sure we delete the tab data, when unlinking the ZIM file
make sure we do not try to restore a tab from an object that is no longer present in the DB
Steps to reproduce:
The problem:
We are saving the tabs data separately from the ZIM files, and once the ZIM file is unlinked, we try to restore these tabs. In most cases we will only receive a pop-up, that the content is not available, which is not user friendly, the bigger problem is that in rare cases it can also crash the app.
Solution: