RediWM is a Wayland compositor written in Zig (OpenGL ES) that includes everything in one process
Hide empty transfer tree in sidebar
Melff6520aa793a
diff --git a/src/files/app_sidebar_paint.zig b/src/files/app_sidebar_paint.zigindex a537076..956663e 100644--- a/src/files/app_sidebar_paint.zig+++ b/src/files/app_sidebar_paint.zig@@ -140,7 +140,10 @@ pub fn sidebarLayout(self: *App) app_model.SidebarLayout {}}const transfer_tree_height: i32 = if (self.transfer_tree_state.tree) |*tree|- @intCast(self.transfer_tree_state.visibleCount(tree) * 25 + 8)+ (if (tree.nodes.items.len > 0)+ @as(i32, @intCast(self.transfer_tree_state.visibleCount(tree) * 25 + 8))+ else+ 0)else0;const transfers_body = torrent_height +