Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 350637b

Browse files
Checking if the current remote is set
1 parent 6c0791f commit 350637b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/SettingsView.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ public override void OnRepositoryChanged(IRepository oldRepository)
124124
public override void Refresh()
125125
{
126126
base.Refresh();
127-
if (Repository != null)
127+
if (Repository != null && Repository.CurrentRemote.HasValue)
128+
{
128129
Repository.ListLocks().Start();
130+
}
129131
}
130132

131133
private void AttachHandlers(IRepository repository)

0 commit comments

Comments
 (0)