mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-19 02:19:31 +08:00
[v3] Fix ordering of if branches in WebviewWindow.Restore method (#3279)
* Add JS Window API example * Fix ordering of if branches in Window.Restore method * Add changelog entry
This commit is contained in:
parent
a9c22f0588
commit
0c3025d695
@ -41,6 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Fix MacOS systray click handling when no attached window by [thomas-senechal](https://github.com/thomas-senechal) in PR [#3207](https://github.com/wailsapp/wails/pull/3207)
|
||||
- Fix failing Windows build due to unknown option by [thomas-senechal](https://github.com/thomas-senechal) in PR [#3208](https://github.com/wailsapp/wails/pull/3208)
|
||||
- Fix wrong baseURL when open window twice by @5aaee9 in PR [#3273](https://github.com/wailsapp/wails/pull/3273)
|
||||
- Fix ordering of if branches in `WebviewWindow.Restore` method by [@fbbdev](https://github.com/fbbdev) in [#3279](https://github.com/wailsapp/wails/pull/3279)
|
||||
|
||||
### Changed
|
||||
|
||||
|
@ -962,10 +962,10 @@ func (w *WebviewWindow) Restore() {
|
||||
InvokeSync(func() {
|
||||
if w.IsMinimised() {
|
||||
w.UnMinimise()
|
||||
} else if w.IsMaximised() {
|
||||
w.UnMaximise()
|
||||
} else if w.IsFullscreen() {
|
||||
w.UnFullscreen()
|
||||
} else if w.IsMaximised() {
|
||||
w.UnMaximise()
|
||||
}
|
||||
w.emit(events.Common.WindowRestore)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user