Skip to content

Commit

Permalink
[WinForms] Activate window on show
Browse files Browse the repository at this point in the history
  • Loading branch information
r0x0r committed Oct 17, 2024
1 parent 47064b1 commit 7b6c174
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions webview/platforms/winforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,14 @@ def hide(self):
self.Invoke(Func[Type](self.Hide))

def show(self):
def _show():
self.Show()
self.Activate()

if self.InvokeRequired:
self.Invoke(Func[Type](self.Show))
self.Invoke(Func[Type](_show))
else:
self.Show()
_show()

def set_window_menu(self, menu_list):
def _set_window_menu():
Expand Down

0 comments on commit 7b6c174

Please sign in to comment.