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 af8189f820
commit 4aede1b43d
No known key found for this signature in database

View file

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