mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
62bf5e1660
commit
5f1b70cb39
2 changed files with 4 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ impl Actor for Hidden {
|
||||||
let state = opt.state.bool(cx.tab().pref.show_hidden);
|
let state = opt.state.bool(cx.tab().pref.show_hidden);
|
||||||
cx.tab_mut().pref.show_hidden = state;
|
cx.tab_mut().pref.show_hidden = state;
|
||||||
|
|
||||||
let hovered = cx.hovered().map(|f| f.url_owned());
|
let hovered = cx.hovered().map(|f| f.urn_owned());
|
||||||
let apply = |f: &mut Folder| {
|
let apply = |f: &mut Folder| {
|
||||||
if f.stage == FolderStage::Loading {
|
if f.stage == FolderStage::Loading {
|
||||||
render!();
|
render!();
|
||||||
|
|
@ -43,7 +43,7 @@ impl Actor for Hidden {
|
||||||
{
|
{
|
||||||
render!(h.repos(None));
|
render!(h.repos(None));
|
||||||
act!(mgr:peek, cx, true)?;
|
act!(mgr:peek, cx, true)?;
|
||||||
} else if hovered.as_ref() != cx.hovered().map(|f| &f.url) {
|
} else if hovered.as_deref() != cx.hovered().map(|f| f.urn()) {
|
||||||
act!(mgr:peek, cx)?;
|
act!(mgr:peek, cx)?;
|
||||||
act!(mgr:watch, cx)?;
|
act!(mgr:watch, cx)?;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ impl Actor for Sort {
|
||||||
pref.sort_translit = opt.translit.unwrap_or(pref.sort_translit);
|
pref.sort_translit = opt.translit.unwrap_or(pref.sort_translit);
|
||||||
|
|
||||||
let sorter = FilesSorter::from(&*pref);
|
let sorter = FilesSorter::from(&*pref);
|
||||||
let hovered = cx.hovered().map(|f| f.url_owned());
|
let hovered = cx.hovered().map(|f| f.urn_owned());
|
||||||
let apply = |f: &mut Folder| {
|
let apply = |f: &mut Folder| {
|
||||||
if f.stage == FolderStage::Loading {
|
if f.stage == FolderStage::Loading {
|
||||||
render!();
|
render!();
|
||||||
|
|
@ -49,7 +49,7 @@ impl Actor for Sort {
|
||||||
{
|
{
|
||||||
render!(h.repos(None));
|
render!(h.repos(None));
|
||||||
act!(mgr:peek, cx, true)?;
|
act!(mgr:peek, cx, true)?;
|
||||||
} else if hovered.as_ref() != cx.hovered().map(|f| &f.url) {
|
} else if hovered.as_deref() != cx.hovered().map(|f| f.urn()) {
|
||||||
act!(mgr:peek, cx)?;
|
act!(mgr:peek, cx)?;
|
||||||
act!(mgr:watch, cx)?;
|
act!(mgr:watch, cx)?;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue