From 31a67ac6c15b9c71a23685db086257643d71723f Mon Sep 17 00:00:00 2001 From: tobinio Date: Tue, 6 Aug 2024 08:47:16 +0200 Subject: [PATCH] fix: disallow drag and dropping a file into a locked instance --- apps/app-frontend/src/pages/instance/Mods.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/app-frontend/src/pages/instance/Mods.vue b/apps/app-frontend/src/pages/instance/Mods.vue index 269826d10..26888ba59 100644 --- a/apps/app-frontend/src/pages/instance/Mods.vue +++ b/apps/app-frontend/src/pages/instance/Mods.vue @@ -847,6 +847,8 @@ watch(selectAll, () => { }) const unlisten = await listen('tauri://file-drop', async (event) => { + if (isPackLocked.value) return + for (const file of event.payload) { if (file.endsWith('.mrpack')) continue await add_project_from_path(props.instance.path, file).catch(handleError)