remove extra update action

This commit is contained in:
yggverse 2025-01-29 15:55:42 +02:00
parent f581f1d2f3
commit 1316f32343
2 changed files with 0 additions and 14 deletions

View file

@ -24,9 +24,6 @@ const SPACING: i32 = 6;
pub struct Navigation {
profile: Rc<Profile>,
//home: Button,
//reload: Button,
bookmark: Button,
request: Entry,
pub g_box: Box,
}
@ -64,10 +61,7 @@ impl Navigation {
Self {
profile: profile.clone(),
//home,
request,
//reload,
bookmark,
g_box,
}
}
@ -141,11 +135,6 @@ impl Navigation {
self.request.identity(&self.profile)
}
pub fn update(&self) {
self.bookmark.update(&self.profile, &self.request);
self.request.update(&self.profile);
}
// Setters
pub fn set_request(&self, value: &str) {

View file

@ -85,7 +85,6 @@ impl Form {
if !this.text().is_empty() {
match navigation.forward(subject) {
Some((mut start, _)) => {
navigation.update();
result.update(navigation.position(), navigation.total());
scroll_to_iter(&subject.text_view, &mut start)
}
@ -130,7 +129,6 @@ impl Form {
Some(subject) => {
match navigation.back(subject) {
Some((mut start, _)) => {
navigation.update();
result.update(navigation.position(), navigation.total());
scroll_to_iter(&subject.text_view, &mut start)
}
@ -148,7 +146,6 @@ impl Form {
move |_| match subject.borrow().as_ref() {
Some(subject) => match navigation.forward(subject) {
Some((mut start, _)) => {
navigation.update();
result.update(navigation.position(), navigation.total());
scroll_to_iter(&subject.text_view, &mut start)
}