5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 10:11:07 +08:00

Improved "HiddenOnTaskbar" implementation.

This commit is contained in:
Lea Anthony 2024-12-27 09:14:43 +11:00
parent 27480bc6cb
commit 1276ef178b
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -210,7 +210,8 @@ func (w *windowsWebviewWindow) run() {
} }
// If we're frameless, we need to add the WS_EX_TOOLWINDOW style to hide the window from the taskbar // If we're frameless, we need to add the WS_EX_TOOLWINDOW style to hide the window from the taskbar
if options.Windows.HiddenOnTaskbar { if options.Windows.HiddenOnTaskbar {
exStyle |= w32.WS_EX_TOOLWINDOW //exStyle |= w32.WS_EX_TOOLWINDOW
exStyle |= w32.WS_EX_NOACTIVATE
} else { } else {
exStyle |= w32.WS_EX_APPWINDOW exStyle |= w32.WS_EX_APPWINDOW
} }