Merge pull request #1688 from PySimpleGUI/Dev-latest
Fix bug that crashes code if 2 keys are the same.
This commit is contained in:
commit
290c7948bd
|
@ -3213,6 +3213,8 @@ class Window:
|
||||||
self.BackgroundImage = background_image
|
self.BackgroundImage = background_image
|
||||||
self.XFound = False
|
self.XFound = False
|
||||||
self.DisableMinimize = disable_minimize
|
self.DisableMinimize = disable_minimize
|
||||||
|
self.UniqueKeyCounter = 0
|
||||||
|
|
||||||
if layout is not None:
|
if layout is not None:
|
||||||
self.Layout(layout)
|
self.Layout(layout)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue