FIX: correct the mac os version check

jira: [STUDIO-13291]
Change-Id: I70e1015f3bfd436ca021a1e98ec66a2f37d21ff1
(cherry picked from commit e4a3d23368659a5bface6cc7215ebacbbfe99dfc)
This commit is contained in:
xin.zhang
2025-07-14 09:15:07 +08:00
committed by Noisyfox
parent 608ac2354d
commit aad1d7b7ae

View File

@@ -79,8 +79,10 @@ MachineObjectPanel::MachineObjectPanel(wxWindow *parent, wxWindowID id, const wx
auto minor = platformInfo.GetOSMinorVersion();
auto micro = platformInfo.GetOSMicroVersion();
//macos 13.1.0
if (major >= 13 && minor >= 1 && micro >= 0) {
//macos over 13.1.0
if (major == 13 && minor >= 1) {
m_is_macos_special_version = true;
} else if (major > 13) {
m_is_macos_special_version = true;
}
#endif