music player fixes
This commit is contained in:
parent
10f7213658
commit
558d0a275b
|
@ -7,7 +7,7 @@ from .player import MusicPlayer
|
||||||
def execute(cinput: ControlInput, graphics: Graphics, directory: str):
|
def execute(cinput: ControlInput, graphics: Graphics, directory: str):
|
||||||
current_dir = path.join("/home/rudism", directory)
|
current_dir = path.join("/home/rudism", directory)
|
||||||
top_menu = create_directory_menu(current_dir, "music")
|
top_menu = create_directory_menu(current_dir, "music")
|
||||||
menu = Menu(top_menu.data["sub_dir"], cinput, graphics)
|
menu = Menu(top_menu.data["sub_menu"], cinput, graphics)
|
||||||
MusicPlayer(cinput, graphics, menu).run()
|
MusicPlayer(cinput, graphics, menu).run()
|
||||||
|
|
||||||
def create_directory_menu(directory: str, dirname: str):
|
def create_directory_menu(directory: str, dirname: str):
|
||||||
|
|
Reference in New Issue