[Bug]: App force-reloads when PDFs are moved or cannot be found #92
Labels
bug
Something isn't working
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Issue: if a PDF is moved from its original location, and the user attempts to open the
Details
view, the app force-reloads (losing any unsaved work). This error is already handled explicitly here, but by that point, it is too late, and the app is already in an inconsistent state (and therefore requires a reload).Steps to recreate:
Details
viewSolution 1: Perform a check before attempting to display files. If the file no longer exists, do the following:
Source
Source
entirelyCaveats:
Source
when a file is moved, we must either:SourceModel
saying the preview should be disabled. This will involve additional overhead and house keeping, orSources
that are not allowed to be previewed (easier and less overhead, but not very elegant)Source
when a file is moved, the user risks losing valuable data. This should be handled gracefully if possible (prompt the user to export any associated data before removing the source)The text was updated successfully, but these errors were encountered: