implement update action for reload button

This commit is contained in:
yggverse 2024-09-24 23:18:49 +03:00
parent ae3cc7a7d5
commit 36c33e1ee6
3 changed files with 9 additions and 5 deletions

View file

@ -1,4 +1,4 @@
use gtk::Entry;
use gtk::{prelude::EntryExt, Entry};
pub struct Request {
widget: Entry,
@ -25,4 +25,8 @@ impl Request {
pub fn widget(&self) -> &Entry {
&self.widget
}
pub fn is_empty(&self) -> bool {
0 == self.widget.text_length()
}
}