mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
fix home status condition
This commit is contained in:
parent
2d13f3ff8a
commit
3f34b76053
1 changed files with 3 additions and 1 deletions
|
|
@ -95,7 +95,9 @@ impl Request for Entry {
|
|||
item_action.reload.set_enabled(!this.text().is_empty());
|
||||
item_action
|
||||
.home
|
||||
.set_enabled(uri(&this.text()).is_some_and(|uri| uri.path().len() > 1));
|
||||
.set_enabled(uri(&this.text()).is_some_and(|uri| {
|
||||
uri.path().len() > 1 || uri.query().is_some() || uri.fragment().is_some()
|
||||
}));
|
||||
|
||||
// Update primary icon
|
||||
this.update(&profile)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue