ocarina: Selectively create settings window

We should only do this if the window doesn't already exist.
This commit is contained in:
Bryan Schumaker 2011-01-22 13:35:42 -05:00
parent 93dcfe5f8e
commit 471db697e9

View File

@ -7,6 +7,7 @@ window = None
def configure():
global window
window = gtk.Window()
window.set_title("Settings")
if window == None:
window = gtk.Window()
window.set_title("Settings")
window.show()