mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Custom icon shows app icon
This commit is contained in:
parent
e6de878395
commit
02713670c9
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
|
|
@ -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…
Add table
Add a link
Reference in a new issue