Skip to content

Commit cc5d8ad

Browse files
committed
Update main-ui.py to 75e7dde37c27eff7dbe154d3d8f3da9767ed3ef6
- Index/Total color - Timezone Option - AM/PM Option - 24 Hour time option - Hide clock option - Fix centering of icons horizontally in places like apps - Settings menu organization + more options - Volume can now go to 0 in the menu - Volume increment by 5 - Volume goes 0-20 to match Miyoo + icons of existing themes - Extra theme options added - Cleanup of how grid view is rendered/looks - Ensure if a theme doesn't have an icon selected, the non selected icon is reused for selected (vs swapping to stock selected) - Hotkey handling - Menu + Volume = Brightness up/down - Holding power button displays a prompt for shutdown
1 parent bd1ec8b commit cc5d8ad

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

source/pyui/main-ui/menus/games/game_system_select_menu.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ def get_images(self, game_system : GameSystem):
6666
selected_icon_system_name_priority.append(os.path.join(game_system.game_system_config.get_emu_folder(),game_system.game_system_config.get_icon()))
6767

6868
index = self.get_first_existing_path(icon_system_name_priority)
69-
icon = icon_system_name_priority[index]
70-
selected_icon = selected_icon_system_name_priority[index]
71-
if not os.path.isfile(selected_icon):
72-
selected_icon = icon
73-
74-
return icon, selected_icon
69+
if(index is not None):
70+
icon = icon_system_name_priority[index]
71+
selected_icon = selected_icon_system_name_priority[index]
72+
if not os.path.isfile(selected_icon):
73+
selected_icon = icon
74+
return icon, selected_icon
75+
else:
76+
return None, None
7577

7678
def run_system_selection(self) :
7779
selected = Selection(None,None,0)

0 commit comments

Comments
 (0)