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:
parent
e6de878395
commit
02713670c9
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
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user