mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-30 13:26:58 +00:00
ENH:Text not centered on mac15
jira: STUDIO-11056 Change-Id: I1c651421f8914a25707ad5b5c1d3e3d56c2df959 (cherry picked from commit 7af3eba50047c4b5f852f2ac3814243543a5019a)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
namespace Slic3r {
|
||||
|
||||
bool is_macos_support_boost_add_file_log();
|
||||
|
||||
int is_mac_version_15();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -6,10 +6,18 @@ namespace Slic3r {
|
||||
bool is_macos_support_boost_add_file_log()
|
||||
{
|
||||
if (@available(macOS 12.0, *)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
int is_mac_version_15()
|
||||
{
|
||||
if (@available(macOS 15.0, *)) {//This code runs on macOS 15 or later.
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}; // namespace Slic3r
|
||||
|
||||
Reference in New Issue
Block a user