mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
fix home request detection
This commit is contained in:
parent
ac4551d090
commit
90759f6aea
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ impl Request {
|
|||
item_action.reload.set_enabled(!this.text().is_empty());
|
||||
item_action
|
||||
.home
|
||||
.set_enabled(home(uri(&this.text())).is_some());
|
||||
.set_enabled(uri(&this.text()).is_some_and(|uri| uri.path().len() > 1));
|
||||
|
||||
// Update primary icon
|
||||
this.first_child().unwrap().remove_css_class("success"); // @TODO handle
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue