mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
ShowOpenDialogAsync causing duplicate windows #840
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 @DatReki on GitHub (Jan 2, 2023).
Originally assigned to: @GregorBiswanger on GitHub.
When making an application I ran into the issue where every time I revisited the page with a
ShowOpenDialogAsyncfunction tied to a button it would open an additional instance of the dialog.Using .Net 5, ElectronNET.API v13.5.1 & Node.JS v16.18.1.
I've reduced the issue to the basics and made a separate repository.
@cosmo0 commented on GitHub (Jan 18, 2023):
Are you sure you're not binding the click event multiple times? What happens when you replace
with
?
@DatReki commented on GitHub (Jan 21, 2023):
It just sends the alert once but still opens one additional window every time the page is re-visited.

@GregorBiswanger commented on GitHub (Mar 28, 2023):
🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉
With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!