Add `OperatingSystem::is_mac` (#7122)
* Part of https://github.com/emilk/egui/issues/7120
This commit is contained in:
parent
cbd9c60399
commit
1d5b011793
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue