Skip to content

Commit

Permalink
Cranach Edition
Browse files Browse the repository at this point in the history
  • Loading branch information
project-owner committed Dec 23, 2019
1 parent a25aadd commit 444f11c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions ui/menu/filemenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ def __init__(self, filelist, util, playlist_provider, bgr=None, bounding_box=Non
selection = url

if url and self.filelist:
if playback_mode == FILE_PLAYLIST:
self.filelist.set_current_item(int(url) - 1)
else:
self.filelist.set_current_item_by_url(url)
self.filelist.set_current_item_by_url(url)

p_index = self.filelist.current_page_index
pl = self.filelist.items
Expand Down Expand Up @@ -342,7 +339,7 @@ def update_playlist_menu(self, state):
name = self.util.get_dictionary_value(state, "Track")

if not name:
name = self.util.get_dictionary_value(state, "current_title")
name = self.util.get_dictionary_value(state, "file_name")

if name != None:
self.config[FILE_PLAYBACK][CURRENT_FILE] = name
Expand Down Expand Up @@ -573,10 +570,7 @@ def change_folder(self, folder, page_index=0, playlist=None, selected=None):
self.filelist = Page(folder_content, self.filelist.rows, self.filelist.columns)

if selected:
if self.config[FILE_PLAYBACK][CURRENT_FILE_PLAYBACK_MODE] == FILE_PLAYLIST:
self.filelist.set_current_item(int(selected) - 1)
else:
self.filelist.set_current_item_by_url(selected)
self.filelist.set_current_item_by_url(selected)
page_index = self.filelist.current_page_index

self.browsing_history[folder] = page_index
Expand Down

0 comments on commit 444f11c

Please sign in to comment.