mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
[v3] correct return types for CurrentWindow
this shouldn't have been changed to Window
This commit is contained in:
parent
8e2527ad35
commit
29859ceedf
1 changed files with 2 additions and 2 deletions
|
|
@ -565,14 +565,14 @@ func (a *App) handleMenuItemClicked(menuItemID uint) {
|
|||
menuItem.handleClick()
|
||||
}
|
||||
|
||||
func (a *App) CurrentWindow() Window {
|
||||
func (a *App) CurrentWindow() *WebviewWindow {
|
||||
if a.impl == nil {
|
||||
return nil
|
||||
}
|
||||
id := a.impl.getCurrentWindowID()
|
||||
a.windowsLock.Lock()
|
||||
defer a.windowsLock.Unlock()
|
||||
return a.windows[id]
|
||||
return a.windows[id].(*WebviewWindow)
|
||||
}
|
||||
|
||||
func (a *App) Quit() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue