So later if I do this (that function should be returning true now), it never seems to react to it.
pub fn should_allow_login_submit(&self) -> bool {
self.received_hello
}
if state.lock().unwrap().should_allow_login_submit() {
button {
r#type: "submit",
"Login"
}
}
High chance I'm doing something really wrong lol. But anyway here's the full code:
https://github.com/BrianWiz/warhorse/blob/main/warhorse_app/src/main.rs