draft page reload action

This commit is contained in:
yggverse 2024-09-25 01:14:45 +03:00
parent 4e0ec422ca
commit fd73dc3d7c
7 changed files with 45 additions and 2 deletions

View file

@ -1,4 +1,5 @@
use gtk::{
glib::GString,
prelude::{EditableExt, EntryExt, WidgetExt},
Entry,
};
@ -44,4 +45,8 @@ impl Request {
pub fn is_empty(&self) -> bool {
0 == self.widget.text_length()
}
pub fn text(&self) -> GString {
self.widget.text()
}
}