mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-20 00:00:17 +00:00
fix(variables): set bool should have variable class parameter
This commit is contained in:
@@ -95,7 +95,7 @@ impl VariableController {
|
||||
|
||||
/// Set a boolean variable specified by `key` to `value`, converting the value.
|
||||
/// The variable `class` controls the attributes for the variable.
|
||||
pub fn set_bool(&self, key: &str, value: bool) -> Result<()> {
|
||||
self.set(key, &[value as u8], VariableClass::BootAndRuntimeTemporary)
|
||||
pub fn set_bool(&self, key: &str, value: bool, class: VariableClass) -> Result<()> {
|
||||
self.set(key, &[value as u8], class)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user