mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-15 16:39:32 +08:00
[v3] export SetIcon
method (#3147)
* export `SetIcon` method * add change log
This commit is contained in:
parent
472288b2e3
commit
e0b8da86ed
@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- [darwin] add getPrimaryScreen/getScreens to impl by @tmclane in [#2618](https://github.com/wailsapp/wails/pull/2618)
|
||||
- [linux] add onKeyPress logic to convert linux keypress into an accelerator @[Atterpac](https://github.com/Atterpac) in[#3022](https://github.com/wailsapp/wails/pull/3022])
|
||||
- [linux] add task `run:linux` by [@marcus-crane](https://github.com/marcus-crane) in [#3146](https://github.com/wailsapp/wails/pull/3146)
|
||||
- export `SetIcon` method by @almas1992 in [PR](https://github.com/wailsapp/wails/pull/3147)
|
||||
|
||||
### Fixed
|
||||
|
||||
|
@ -611,6 +611,12 @@ func (a *App) Quit() {
|
||||
})
|
||||
}
|
||||
|
||||
func (a *App) SetIcon(icon []byte) {
|
||||
if a.impl != nil {
|
||||
a.impl.setIcon(icon)
|
||||
}
|
||||
}
|
||||
|
||||
func (a *App) SetMenu(menu *Menu) {
|
||||
a.ApplicationMenu = menu
|
||||
if a.impl != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user