Allow for adding variables in hot-reloading
This commit is contained in:
parent
01da512231
commit
2f9a6304b4
1 changed files with 0 additions and 3 deletions
|
@ -89,9 +89,6 @@ impl EwwState {
|
||||||
/// Update the value of a variable, running all registered
|
/// Update the value of a variable, running all registered
|
||||||
/// [StateChangeHandler]s.
|
/// [StateChangeHandler]s.
|
||||||
pub fn update_variable(&mut self, key: VarName, value: PrimitiveValue) -> Result<()> {
|
pub fn update_variable(&mut self, key: VarName, value: PrimitiveValue) -> Result<()> {
|
||||||
if !self.variables_state.contains_key(&key) {
|
|
||||||
bail!("Tried to set unknown variable '{}'", key);
|
|
||||||
}
|
|
||||||
self.variables_state.insert(key.clone(), value);
|
self.variables_state.insert(key.clone(), value);
|
||||||
|
|
||||||
let handlers = self
|
let handlers = self
|
||||||
|
|
Loading…
Add table
Reference in a new issue