fix: branch widget: don't call git status if there is no git workspace
This commit is contained in:
parent
5724739b51
commit
410a6aadce
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,8 @@ fn on_click(self: *Self, _: *Button.State(Self)) void {
|
|||
command.executeName("show_git_status", .{}) catch {};
|
||||
}
|
||||
|
||||
fn refresh_git_status(_: *Self) void {
|
||||
git.status(0) catch {};
|
||||
fn refresh_git_status(self: *Self) void {
|
||||
if (self.workspace_path) |_| git.status(0) catch {};
|
||||
}
|
||||
|
||||
pub fn receive(self: *Self, _: *Button.State(Self), _: tp.pid_ref, m: tp.message) error{Exit}!bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue