fix: unify path expansion and absolutization behavior (#3438)

This commit is contained in:
三咲雅 misaki masa 2025-12-17 23:00:05 +08:00 committed by GitHub
parent 80b3b8465d
commit e9eb8b9155
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
51 changed files with 453 additions and 230 deletions

View file

@ -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),
});

View file

@ -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,