From 811e4446391eb37cba1e0377c5be06df8ead8935 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Sun, 28 Jul 2024 12:14:32 +0530 Subject: [PATCH] prevent crash on AccessDenied on toggle --- app/utils.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/utils.zig b/app/utils.zig index 042c138..31428e7 100644 --- a/app/utils.zig +++ b/app/utils.zig @@ -38,8 +38,10 @@ pub fn toggleItemChildren(item: *Item) !bool { } _ = item.children() catch |e| { + // TODO: show user switch (e) { ItemError.IsNotDirectory => return false, + error.AccessDenied => return false, else => return e, } };