From 8e0af98fed442a2a0b8e719a5952d736106739b3 Mon Sep 17 00:00:00 2001 From: Jakob Reschke Date: Fri, 25 Sep 2020 23:08:10 +0200 Subject: [PATCH] Fix: error when opening Git Browser without any working copies Closes #288 (cherry-picked from commit a384153254717eb2fe1a193a2a456394bbeeb2ff) --- src/Squit.package/SquitBrowser.class/instance/refresh.st | 2 +- src/Squit.package/SquitBrowser.class/methodProperties.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Squit.package/SquitBrowser.class/instance/refresh.st b/src/Squit.package/SquitBrowser.class/instance/refresh.st index bcc624a5f..f35ab523f 100644 --- a/src/Squit.package/SquitBrowser.class/instance/refresh.st +++ b/src/Squit.package/SquitBrowser.class/instance/refresh.st @@ -2,7 +2,7 @@ ui refresh Cursor wait showWhile: [self changed: #projectList. - (self projectIndex = 0 and: [self projectList size > 0]) ifTrue: [self projectIndex: 2]. + (self projectIndex = 0 and: [self hasProjects]) ifTrue: [self projectIndex: 2]. self changed: #projectIndex. self withUnitOfWork: [self hasProjectSelection ifFalse: diff --git a/src/Squit.package/SquitBrowser.class/methodProperties.json b/src/Squit.package/SquitBrowser.class/methodProperties.json index fd7f7c5d1..19382711b 100644 --- a/src/Squit.package/SquitBrowser.class/methodProperties.json +++ b/src/Squit.package/SquitBrowser.class/methodProperties.json @@ -172,7 +172,7 @@ "push:toRemoteNamed:" : "jr 8/8/2020 00:08", "pushBranch" : "jr 8/8/2020 00:08", "rebuildCommitList" : "jr 5/17/2020 23:35", - "refresh" : "jr 8/10/2020 00:20", + "refresh" : "jr 9/25/2020 20:11", "remoteUrlOf:" : "jr 3/7/2020 00:08", "remotesMenuWithItems:" : "jr 3/4/2020 01:01", "remotesPushSubMenu" : "jr 5/30/2019 01:14",