[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:
Fabio Massaioli
2024-03-02 16:04:02 +11:00
committed by GitHub
parent a9c22f0588
commit 0c3025d695
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -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
+2 -2
View File
@@ -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)
})