╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Files.zig ────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
915 return true; 916 } 917 918 pub fn hasCloneUrl(self: *Header.View) bool { 919 return self.cloneUrl() != null; 920 } 921 922 fn cloneUrl(self: *Header.View) ?*ui.CloneUrl.View { 923 for (self.box.children.values()) |*child| switch (child.widget) { 924 .clone_url => |*clone_url| return clone_url, 925 else => {}, 926 }; 927 return null; 928 } 929 930 pub fn clearGrid(self: *Header.View) void { 931 self.box.clearGrid(); 932 } 933 934 pub fn getGrid(self: Header.View) ?Grid { 935 return self.box.getGrid(); 936 } 937 938 pub fn getFocus(self: *Header.View) *Focus { 939 return self.box.getFocus(); 940 } 941 }; 942 }; 943