Electron.NET Tray Icon - Click to show app instead of opening tray menu

363 views Asked by At

C# Blazor with Electron.NET Tray icon opens tray menu regardless of if it's right or left click.

How do I disable opening the menu when it's a normal (left) click and make it just show the app instead?

This is what I want to happen when the tray is left clicked:

Electron.WindowManager.BrowserWindows.First().Hide();

Instead, it shows a menu like this: screenshot

0

There are 0 answers