mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Add OperatingSystem::is_mac (#7122)
* Part of https://github.com/emilk/egui/issues/7120
This commit is contained in:
@@ -76,4 +76,9 @@ impl OperatingSystem {
|
||||
Self::Unknown
|
||||
}
|
||||
}
|
||||
|
||||
/// Are we either macOS or iOS?
|
||||
pub fn is_mac(&self) -> bool {
|
||||
matches!(self, Self::Mac | Self::IOS)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user