mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-15 22:32:13 +00:00
focus app window on file drop so modal isn't dismissed by the focus click
This commit is contained in:
1 parent
386321bbc2
commit
a244b2c8bc
1 file changed
+1
+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) {
|
||||
|
||||
Reference in new issue
Block a user