hundredrabbits / Left

Distractionless Writing Tool
http://hundredrabbits.itch.io/left
Other
1.77k stars 142 forks source link

"undefined path" when opening the theme file dialog #144

Open gcaptn opened 3 years ago

gcaptn commented 3 years ago

I'm using the v7.1.5 build on Windows 10. This is the stack trace:

internal/fs/utils.js:426
Uncaught TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be one of type string, Buffer, or URL. Received type undefined
    at Object.readFile (fs.js:302)
    at Object.fs.readFile (electron/js2c/asar.js:485)
    at Object.fs.readFile (electron/js2c/asar.js:485)
    at Theme.open (D:\Left\resources\app\sources\scripts\lib\theme.js:81)
    at index.html:85
    at CallbacksRegistry.apply (callbacks-registry.ts:45)
    at remote.js:286
    at EventEmitter.<anonymous> (remote.js:276)
    at EventEmitter.emit (events.js:203)
    at Object.onMessage (init.ts:50)

Repro: Open the "Open Theme" dialog.

neauoire commented 3 years ago

Thanks, I'll have a look :)