Fix goals game option not changing
This commit is contained in:
parent
cde032eccc
commit
6cd6769097
@ -167,14 +167,13 @@ impl IPanel for LobbyPanel {
|
|||||||
spinbox.set_value(*value);
|
spinbox.set_value(*value);
|
||||||
spinbox.set_editable(NetworkManager::singleton().bind().is_host());
|
spinbox.set_editable(NetworkManager::singleton().bind().is_host());
|
||||||
|
|
||||||
let spinbox_clone = spinbox.clone();
|
|
||||||
let option = option.clone();
|
let option = option.clone();
|
||||||
spinbox.signals().changed().connect_other(self, move |s| {
|
spinbox.signals().value_changed().connect_other(
|
||||||
s.option_changed(
|
self,
|
||||||
option,
|
move |s, new_value| {
|
||||||
GameOptionValue::Number(spinbox_clone.get_value()),
|
s.option_changed(option, GameOptionValue::Number(new_value));
|
||||||
|
},
|
||||||
);
|
);
|
||||||
});
|
|
||||||
|
|
||||||
spinbox.upcast()
|
spinbox.upcast()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user