mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 21:25:09 +00:00
HostHook event isn't being called #543
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @danatcofo on GitHub (Aug 3, 2020).
Originally assigned to: @GregorBiswanger on GitHub.
API: 9.31.2
CLI: 9.31.2
Windows: NETCORE3.1
Steps to Reproduce:
Calling showOpenDialogMainandHostHook has been initializedare both in the logs butshowOpenDialogMan has been calledis never emitted.Root of this is that I need an open dialog to occur when there is no window actually live. All the dialog options never account for the cases of not having any browser windows actually living. This code is based on the code sample from the repo.
I've attempted this same code with no extra parameters as well to the same result.
@GregorBiswanger commented on GitHub (Aug 14, 2020):
Electrons
dialog.showOpenDialogfunction requires a renderer instance (window). There are some bugs in your code.You need JsonSerializer options from NewtonsoftJson for the OpenDialogOptions.
With the HostHook project, you have to send your asynchronous response back via a done callback.
The code snippets work for me. I hope I have helped you with the informations.
@danatcofo commented on GitHub (Aug 14, 2020):
Thanks.. that worked however, I did alter your working example here to function without having windows already created.