Skip to content

Commit

Permalink
Fixed winforms implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
proneon267 committed Aug 28, 2023
1 parent 943612d commit 7b864fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions winforms/src/toga_winforms/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,11 @@ def resize_content(self):
)

def window_on_gain_focus(self, sender, event):
self.interface.app.on_gain_focus(self.interface)
if self.interface.app is not None:
self.interface.app.on_gain_focus(self.interface)
self.interface.on_gain_focus(self.interface)

def window_on_lose_focus(self, sender, event):
self.interface.app.on_lose_focus(self.interface)
if self.interface.app is not None:
self.interface.app.on_lose_focus(self.interface)
self.interface.on_lose_focus(self.interface)

0 comments on commit 7b864fe

Please sign in to comment.