- Fixed bug that causes app to close prematurely in some cases

This commit is contained in:
Ben Reaves
2020-10-23 22:54:58 -05:00
parent 21dd05415e
commit 07be0f826f

View File

@@ -752,7 +752,7 @@ class MyWindow(Gtk.Window):
if openWin and self.get_title() == "Keyboard Assistant":
openWin = False
win.show_all()
else:
elif self.get_title() == "Keyboard Assistant":
Gtk.main_quit()
self.hide()
@@ -1357,5 +1357,6 @@ win = MyWindow()
win.connect("delete-event", Gtk.main_quit)
if openWin:
win.show_all()
openWin = False
Gtk.main()