implement page reload on request auto-routed

This commit is contained in:
yggverse 2024-09-25 02:35:54 +03:00
parent c31cf21149
commit cdf3dbcf04
3 changed files with 25 additions and 5 deletions

View file

@ -37,6 +37,15 @@ impl Request {
// @TODO animate progress fraction
}
// Setters
pub fn set_text(&self, value: &GString, activate: bool) {
self.widget.set_text(value);
if activate {
self.widget.activate();
}
}
// Getters
pub fn widget(&self) -> &Entry {
&self.widget