Bug fix - need to decrement number of open windows after ReadFormButton clicked

This commit is contained in:
MikeTheWatchGuy 2018-08-27 10:55:53 -04:00
parent 1505b56601
commit 8759046bcf
2 changed files with 3 additions and 0 deletions

View File

@ -1084,6 +1084,9 @@ class FlexForm:
if self.RootNeedsDestroying:
self.TKroot.destroy()
_my_windows.Decrement()
# if form was closed with X
if self.LastButtonClicked is None and self.LastKeyboardEvent is None and self.ReturnValues[0] is None:
_my_windows.Decrement()
if self.LastKeyboardEvent is not None or self.LastButtonClicked is not None:
return BuildResults(self, False, self)
else: