[Bug 165070] Non-existent removed files remain shown in the open "Recent Documents" menu's list
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Feb 6 15:49:58 UTC 2025
https://bugs.documentfoundation.org/show_bug.cgi?id=165070
--- Comment #6 from V Stuart Foote <vsfoote at libreoffice.org> ---
(In reply to Jeff Fortin Tam from comment #5)
> I understand the usecase for removable USB devices and such…
> ...
We work against what the os/DE reports as available in the current LibreOffice
session [1] Then simply test DirectoryHelper::fileExists() against
mounts/remotes FS that have been exposed as available.
Then optionally dropping with RecentDocsView::clearUnavailableFiles() [2]
action available now from the SC UI for those document URLs that are not, but
done by explicit user action. User option of adding the control to the File ->
Recent Documents sub-menu is reasonable.
Why would we want to make it more complicated that that, crossplatform
LibreOffice is not a FileManager. Onus is on user or os/DE to restore the FS
mounts? Not something required of LibreOffice to track.
=-ref-=
[1]
https://opengrok.libreoffice.org/xref/core/include/comphelper/DirectoryHelper.hxx
https://opengrok.libreoffice.org/xref/core/comphelper/source/misc/DirectoryHelper.cxx
[2]
https://opengrok.libreoffice.org/xref/core/sfx2/source/control/recentdocsview.cxx?r=b77ad21d445783d77697470796be5c43f9fc5cd3#190
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Libreoffice-ux-advise
mailing list