ocarina: f key toggles footer
This commit is contained in:
parent
dc418df572
commit
2b0c7792d0
|
@ -7,6 +7,7 @@ import tiny
|
|||
import detailed
|
||||
import libsaria
|
||||
from libsaria import audio
|
||||
from ocarina import shortcuts
|
||||
|
||||
footer = gtk.VBox()
|
||||
hsep = gtk.HSeparator()
|
||||
|
@ -34,6 +35,14 @@ def show_less():
|
|||
detailed.hide()
|
||||
libsaria.prefs.set_pref("ocarina.footer.up", False)
|
||||
|
||||
def toggle_footer():
|
||||
up = libsaria.prefs.get_pref("ocarina.footer.up")
|
||||
if up == True:
|
||||
show_less()
|
||||
else:
|
||||
show_more()
|
||||
shortcuts.register_shortcut("f", toggle_footer)
|
||||
|
||||
up = libsaria.init_pref("ocarina.footer.up", False)
|
||||
if up == True:
|
||||
show_more()
|
||||
|
|
Loading…
Reference in New Issue