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 committed by backportbot[bot]
parent 1dca8f98aa
commit 27efd04c28

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
}