Info pane with new prefs
The information pane uses the new preferences tree now.
This commit is contained in:
parent
4335c1a111
commit
a149b2f360
|
@ -142,7 +142,7 @@ class TwoWayPane(InfoBar):
|
||||||
self.bar = self.contents
|
self.bar = self.contents
|
||||||
self.tab = InfoTab(self.down_button)
|
self.tab = InfoTab(self.down_button)
|
||||||
self.pack_start(self.tab)
|
self.pack_start(self.tab)
|
||||||
if libsaria.prefs["INFOPANEUP"] == True:
|
if libsaria.prefs2.get_pref("ocarina.infopane.up") == True:
|
||||||
self.up_button()
|
self.up_button()
|
||||||
else:
|
else:
|
||||||
self.down_button()
|
self.down_button()
|
||||||
|
@ -150,12 +150,12 @@ class TwoWayPane(InfoBar):
|
||||||
def up_button(self):
|
def up_button(self):
|
||||||
self.bar.hide()
|
self.bar.hide()
|
||||||
self.tab.show()
|
self.tab.show()
|
||||||
libsaria.prefs["INFOPANEUP"] = True
|
libsaria.prefs2.set_pref("ocarina.infopane.up", True)
|
||||||
|
|
||||||
def down_button(self):
|
def down_button(self):
|
||||||
self.bar.show()
|
self.bar.show()
|
||||||
self.tab.hide()
|
self.tab.hide()
|
||||||
libsaria.prefs["INFOPANEUP"] = False
|
libsaria.prefs2.set_pref("ocarina.infopane.up", False)
|
||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
|
|
Loading…
Reference in New Issue