Commit fc59a36
committed
Fix default file name when saving selection with Edit > Copy To
This also fixes an error in the Electron app with Edit > Copy To:
Error occurred in handler for 'show-save-dialog': TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:371:5)
at validateString (node:internal/validators:120:11)
at Object.basename (node:path:752:5)
at C:\...\jspaint\src\electron-main.js:469:45
at node:electron/js2c/browser_init:189:579
at EventEmitter.<anonymous> (node:electron/js2c/browser_init:161:11327)
at EventEmitter.emit (node:events:526:28) {
code: 'ERR_INVALID_ARG_TYPE'
}1 parent 2fe8c35 commit fc59a36
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4078 | 4078 | | |
4079 | 4079 | | |
4080 | 4080 | | |
4081 | | - | |
| 4081 | + | |
4082 | 4082 | | |
4083 | 4083 | | |
4084 | 4084 | | |
| |||
0 commit comments