Browse Source

remove status relation

master
yggverse 1 month ago
parent
commit
9f2d9ce110
  1. 11
      src/app/browser/window/tab/item/page/meta.rs

11
src/app/browser/window/tab/item/page/meta.rs

@ -43,17 +43,6 @@ impl Meta {
// Setters // Setters
pub fn set_status(&self, status: Status) -> &Self { pub fn set_status(&self, status: Status) -> &Self {
match status {
Status::Redirect => {
if self.redirect.borrow().is_none() {
panic!("Set `redirect` before use this status")
}
}
_ => {
self.unset_redirect();
}
};
self.status.replace(status); self.status.replace(status);
self self
} }

Loading…
Cancel
Save