Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazzzny committed Sep 27, 2023
1 parent 89e36d7 commit 3fb624f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions resources/wx_gui/gui_macos_installer_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ def _macos_version_to_icon(self, version: int) -> int:
"""
Convert macOS version to icon
"""
if version < os_data.os_data.big_sur or version > os_data.os_data.sonoma:
return 0
else:
try:
self.constants.icons_path[version - 19]
return version - 19
except IndexError:
return 0


def _generate_elements(self, frame: wx.Frame = None) -> None:
Expand Down

0 comments on commit 3fb624f

Please sign in to comment.