dash-frontend: toast messages, 📦📎

This commit is contained in:
Aleksander
2025-12-08 22:42:05 +01:00
parent e7746f5981
commit b0985e33af
28 changed files with 316 additions and 80 deletions

View File

@@ -95,7 +95,7 @@ pub fn normalize_path(path: &Path) -> PathBuf {
Component::ParentDir => {
match stack.last() {
// ../foo, ../../foo, ./../foo → push ".."
None | Some(Component::ParentDir) | Some(Component::CurDir) => stack.push(Component::ParentDir),
None | Some(Component::ParentDir | Component::CurDir) => stack.push(Component::ParentDir),
// "foo/../bar" → pop "foo" and don't push ".."
Some(Component::Normal(_)) => {
stack.pop();