mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-03 05:12:55 +00:00
slint: Change Platform.os to return a new enum OperatingSystemType (#8679)
* slint: Change Platform.os to return a new enum OperatingSystemType cc #8631
This commit is contained in:
parent
2d6ebc7df7
commit
06a19e59ad
9 changed files with 61 additions and 43 deletions
|
|
@ -260,7 +260,9 @@ declare_builtin_function_types!(
|
|||
Translate: (Type::String, Type::String, Type::String, Type::Array(Type::String.into())) -> Type::String,
|
||||
Use24HourFormat: () -> Type::Bool,
|
||||
UpdateTimers: () -> Type::Void,
|
||||
DetectOperatingSystem: () -> Type::String,
|
||||
DetectOperatingSystem: () -> Type::Enumeration(
|
||||
typeregister::BUILTIN.with(|e| e.enums.OperatingSystemType.clone()),
|
||||
),
|
||||
);
|
||||
|
||||
impl BuiltinFunction {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue