mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50: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
|
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