fix(files): Allow opening the same file repeatedly

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2025-01-27 08:40:55 +01:00
parent 67f417b7ee
commit 8a34e0552c
No known key found for this signature in database

View file

@ -281,7 +281,7 @@ export default defineComponent({
* @param fileId File to open
*/
handleOpenFile(fileId: number|null) {
if (fileId === null || this.openFileId === fileId) {
if (fileId === null) {
return
}