focus app window on file drop so modal isn't dismissed by the focus click

This commit is contained in:
Tanish Manku committed 2026-03-25 17:27:10 -07:00
1 parent 386321bbc2
commit a244b2c8bc
1 file changed
+1
@@ -67,6 +67,7 @@ export function GlobalFileDropHandler() {
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const blob = await response.blob();
const file = new File([blob], fileName);
await appWindow.setFocus();
setModalType(type);
setPendingFile(file);
} catch (err) {