Skip to content

Commit ac13d78

Browse files
committed
change url in tab asap
1 parent 961574f commit ac13d78

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/tab.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ impl Tab {
209209
let imp = self.imp();
210210

211211
self.set_progress(0.0);
212+
*imp.title.borrow_mut() = url.to_string();
213+
self.notify("title");
214+
*imp.url.borrow_mut() = url.to_string();
215+
self.notify("url");
216+
212217
let scroll_progress = imp.scroll_win.vadjustment().value();
213218
let mut history = imp.history.borrow_mut();
214219
if let Some(item) = history.last_mut() {
@@ -235,10 +240,6 @@ impl Tab {
235240
Self::display_error(&mut req_ctx.draw_ctx, e);
236241
}
237242
}
238-
*this.imp().title.borrow_mut() = url.to_string();
239-
this.notify("title");
240-
*this.imp().url.borrow_mut() = url.to_string();
241-
this.notify("url");
242243
this.set_progress(1.0);
243244
};
244245
self.set_progress(0.3);

0 commit comments

Comments
 (0)