mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
remove extra update action
This commit is contained in:
parent
f581f1d2f3
commit
1316f32343
2 changed files with 0 additions and 14 deletions
|
|
@ -24,9 +24,6 @@ const SPACING: i32 = 6;
|
||||||
|
|
||||||
pub struct Navigation {
|
pub struct Navigation {
|
||||||
profile: Rc<Profile>,
|
profile: Rc<Profile>,
|
||||||
//home: Button,
|
|
||||||
//reload: Button,
|
|
||||||
bookmark: Button,
|
|
||||||
request: Entry,
|
request: Entry,
|
||||||
pub g_box: Box,
|
pub g_box: Box,
|
||||||
}
|
}
|
||||||
|
|
@ -64,10 +61,7 @@ impl Navigation {
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
profile: profile.clone(),
|
profile: profile.clone(),
|
||||||
//home,
|
|
||||||
request,
|
request,
|
||||||
//reload,
|
|
||||||
bookmark,
|
|
||||||
g_box,
|
g_box,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -141,11 +135,6 @@ impl Navigation {
|
||||||
self.request.identity(&self.profile)
|
self.request.identity(&self.profile)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn update(&self) {
|
|
||||||
self.bookmark.update(&self.profile, &self.request);
|
|
||||||
self.request.update(&self.profile);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Setters
|
// Setters
|
||||||
|
|
||||||
pub fn set_request(&self, value: &str) {
|
pub fn set_request(&self, value: &str) {
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,6 @@ impl Form {
|
||||||
if !this.text().is_empty() {
|
if !this.text().is_empty() {
|
||||||
match navigation.forward(subject) {
|
match navigation.forward(subject) {
|
||||||
Some((mut start, _)) => {
|
Some((mut start, _)) => {
|
||||||
navigation.update();
|
|
||||||
result.update(navigation.position(), navigation.total());
|
result.update(navigation.position(), navigation.total());
|
||||||
scroll_to_iter(&subject.text_view, &mut start)
|
scroll_to_iter(&subject.text_view, &mut start)
|
||||||
}
|
}
|
||||||
|
|
@ -130,7 +129,6 @@ impl Form {
|
||||||
Some(subject) => {
|
Some(subject) => {
|
||||||
match navigation.back(subject) {
|
match navigation.back(subject) {
|
||||||
Some((mut start, _)) => {
|
Some((mut start, _)) => {
|
||||||
navigation.update();
|
|
||||||
result.update(navigation.position(), navigation.total());
|
result.update(navigation.position(), navigation.total());
|
||||||
scroll_to_iter(&subject.text_view, &mut start)
|
scroll_to_iter(&subject.text_view, &mut start)
|
||||||
}
|
}
|
||||||
|
|
@ -148,7 +146,6 @@ impl Form {
|
||||||
move |_| match subject.borrow().as_ref() {
|
move |_| match subject.borrow().as_ref() {
|
||||||
Some(subject) => match navigation.forward(subject) {
|
Some(subject) => match navigation.forward(subject) {
|
||||||
Some((mut start, _)) => {
|
Some((mut start, _)) => {
|
||||||
navigation.update();
|
|
||||||
result.update(navigation.position(), navigation.total());
|
result.update(navigation.position(), navigation.total());
|
||||||
scroll_to_iter(&subject.text_view, &mut start)
|
scroll_to_iter(&subject.text_view, &mut start)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue