5
0
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:
Fabio Massaioli 2024-03-02 06:04:02 +01:00 committed by GitHub
parent a9c22f0588
commit 0c3025d695
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

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 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 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 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 ### Changed

View File

@ -962,10 +962,10 @@ func (w *WebviewWindow) Restore() {
InvokeSync(func() { InvokeSync(func() {
if w.IsMinimised() { if w.IsMinimised() {
w.UnMinimise() w.UnMinimise()
} else if w.IsMaximised() {
w.UnMaximise()
} else if w.IsFullscreen() { } else if w.IsFullscreen() {
w.UnFullscreen() w.UnFullscreen()
} else if w.IsMaximised() {
w.UnMaximise()
} }
w.emit(events.Common.WindowRestore) w.emit(events.Common.WindowRestore)
}) })