From 3fb624fc7d5ebe46fdb0e07baec0a1471390e9e3 Mon Sep 17 00:00:00 2001 From: Jazzzny Date: Tue, 26 Sep 2023 21:30:02 -0400 Subject: [PATCH] Changes --- resources/wx_gui/gui_macos_installer_download.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/wx_gui/gui_macos_installer_download.py b/resources/wx_gui/gui_macos_installer_download.py index a103bab0ac..6448fa2f81 100644 --- a/resources/wx_gui/gui_macos_installer_download.py +++ b/resources/wx_gui/gui_macos_installer_download.py @@ -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: