Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

application.getCurrentWindow(), other getWindow methods and window.showOpenFilePicker() not working #928

Open
WolfBearGames opened this issue Feb 12, 2024 · 0 comments
Labels
api An issue, task, or discussion related to public runtime APIs regression

Comments

@WolfBearGames
Copy link

What OS are you using (uname -a, or Windows version)?

Linux nobara-mini 6.7.0-204.fsync.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC TKG Wed Jan 17 09:24:55 UTC 2024 x86_64 GNU/Linux

What version Socket Runtime are you using?

0.5.4 (f90ba12)

What did you expect to see and what you saw instead?

I wanted to show a file open dialog using the "window.showOpenFilePicker()" method, but instead got the error message:

"Unhandled Promise Rejection: TypeError: windows.map is not a function. (In 'windows.map(window => [Number(window.index), new ApplicationWindow(window)])', 'windows.map' is undefined)"

the error originates from application.js:151

The error seems to happen with all application.js methods that should return a window (getCurrentWindow(),getWindow(),getWindows())

@heapwolf heapwolf added regression api An issue, task, or discussion related to public runtime APIs labels Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api An issue, task, or discussion related to public runtime APIs regression
Projects
None yet
Development

No branches or pull requests

2 participants