The close method is slow when AutoHideMenuBar property set to true and open the new browserwindow and close it. #727

Closed
opened 2026-01-29 16:47:02 +00:00 by claunia · 1 comment
Owner

Originally created by @Hyung-Kim on GitHub (Dec 1, 2021).

Originally assigned to: @GregorBiswanger on GitHub.

  • Version:
    VS 2022
  • Target:

.NET6
Node.js : 16.13.0
blazor server side

Steps to Reproduce:

  1. Wrtie bellow code at program.cs
var options = new BrowserWindowOptions
        {
            Width = 480,
            Height = 670,
            MinWidth = 400,
            MinHeight = 670,
            AutoHideMenuBar = true
        };

var browserWindow = await Electron.WindowManager.CreateWindowAsync(options);
  1. Add the link code at index.html
<a target="_blank" class="font-weight-bold" href="https://go.microsoft.com/fwlink/?linkid=2112271">brief survey</a>

  1. Run main app and click the link, and then close the opened link window.
Originally created by @Hyung-Kim on GitHub (Dec 1, 2021). Originally assigned to: @GregorBiswanger on GitHub. <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: VS 2022 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> <!-- What target are you building for? --> * **Target**: .NET6 Node.js : 16.13.0 blazor server side <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Steps to Reproduce: 1. Wrtie bellow code at program.cs ```C# var options = new BrowserWindowOptions { Width = 480, Height = 670, MinWidth = 400, MinHeight = 670, AutoHideMenuBar = true }; var browserWindow = await Electron.WindowManager.CreateWindowAsync(options); ``` 2. Add the link code at index.html ```html <a target="_blank" class="font-weight-bold" href="https://go.microsoft.com/fwlink/?linkid=2112271">brief survey</a> ``` 3. Run main app and click the link, and then close the opened link window.
claunia added the bug label 2026-01-29 16:47:02 +00:00
Author
Owner

@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!

@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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#727