Skip to content

Commit

Permalink
Custom icon shows app icon
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Oct 11, 2023
1 parent e6de878 commit 0271367
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion v3/internal/runtime/runtime_debug_desktop_darwin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v3/internal/runtime/runtime_debug_desktop_linux.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v3/internal/runtime/runtime_debug_desktop_windows.js

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions v3/pkg/application/dialogs_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 0271367

Please sign in to comment.