ocarina: Create settings window every time
Trying to save the window each time wasn't working well. I found that clicking the preferences button a second time would display an empty window, rather than what was saved. The user probably won't notice the time it takes to create the window again.
This commit is contained in:
parent
1e52558279
commit
8c2e7605ef
|
@ -3,12 +3,7 @@
|
|||
import ocarina
|
||||
gtk = ocarina.gtk
|
||||
|
||||
window = None
|
||||
pages = None
|
||||
|
||||
def create_window():
|
||||
global window
|
||||
global pages
|
||||
def configure():
|
||||
import general
|
||||
|
||||
window = gtk.Window()
|
||||
|
@ -19,8 +14,4 @@ def create_window():
|
|||
pages.show()
|
||||
|
||||
pages.append_page(general.get_page(), gtk.Label("General"))
|
||||
|
||||
def configure():
|
||||
if window == None:
|
||||
create_window()
|
||||
window.show()
|
||||
|
|
Loading…
Reference in New Issue
Block a user