5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-21 03:19:31 +08:00

Custom icon shows app icon

This commit is contained in:
Lea Anthony 2023-10-11 21:29:40 +11:00
parent e6de878395
commit 02713670c9
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
4 changed files with 6 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3,12 +3,11 @@
package application
import (
"path/filepath"
"strings"
"github.com/wailsapp/wails/v3/internal/go-common-file-dialog/cfd"
"github.com/wailsapp/wails/v3/pkg/w32"
"golang.org/x/sys/windows"
"path/filepath"
"strings"
)
func (m *windowsApp) showAboutDialog(title string, message string, _ []byte) {
@ -46,7 +45,7 @@ func (m *windowsDialog) show() {
}
}
if m.UseAppIcon {
if m.UseAppIcon || m.dialog.Icon != nil {
// 3 is the application icon
button, _ = w32.MessageBoxWithIcon(parentWindow, message, title, 3, windows.MB_OK|windows.MB_USERICON)
} else {