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