Cosmo André

Results 7 comments of Cosmo André

> Could you run the application with the `RUST_LOG=debug` environment variable set and copy/paste the logs here? Would help us know what's going on. ```bash [2024-04-03T03:58:35Z DEBUG iced_winit::application] Window builder:...

Here's a brief explanation of what motivated me in this PR ```rust let user_input = String::new(); // it will most likely already exist somewhere button("hi").on_press(Message::Hi).disabled_if(user_input.is_empty()); ``` with on_press_maybe I would...

> This PR seems to have the changes from #2361. Can we get rid of those here? Yes, of course you can!

> > I do think your proposed method would definitely improve developer experience. Actually, I really like the explicit separation: > > ```rust > > button("Login") > > .disable_if(password.is_empty()) >...

@hecrj Could you check this PR? I have no response from the original reviewer.

Try this, it works for me ``` use regex::Regex; pub fn only_numbers_repository(s: &mut String) { let re = Regex::new(r"[^0-9]+").unwrap(); *s = re.replace_all(s, "").to_string(); } ``` ``` if ui.text_edit_singleline(&mut app.actions_create.total_seconds) .on_hover_text_at_pointer("Informe...

Tente adicionar no topo do seu main.rs #![windows_subsystem = "windows"]