mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
fix: unify path expansion and absolutization behavior (#3438)
This commit is contained in:
parent
80b3b8465d
commit
e9eb8b9155
51 changed files with 453 additions and 230 deletions
|
|
@ -25,10 +25,10 @@ impl AppProxy {
|
|||
emit!(Call(relay!(app:update_notify, [dur.as_secs_f64()])));
|
||||
}
|
||||
|
||||
pub fn notify_warn(title: &str, content: impl ToString) {
|
||||
pub fn notify_warn(title: impl Into<String>, content: impl Into<String>) {
|
||||
Self::notify(NotifyOpt {
|
||||
title: title.to_owned(),
|
||||
content: content.to_string(),
|
||||
title: title.into(),
|
||||
content: content.into(),
|
||||
level: NotifyLevel::Warn,
|
||||
timeout: Duration::from_secs(5),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ impl TasksProxy {
|
|||
block: bool,
|
||||
orphan: bool,
|
||||
) {
|
||||
let done = CompletionToken::new();
|
||||
let done = CompletionToken::default();
|
||||
emit!(Call(relay!(tasks:process_open).with_any("opt", ProcessOpenOpt {
|
||||
cwd,
|
||||
cmd,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue