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

Commit f28a24b

Browse files
Removing unneccessary flag
1 parent bae6029 commit f28a24b

File tree

1 file changed

+1
-5
lines changed
  • src/UnityExtension/Assets/Editor/GitHub.Unity/UI

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ class Window : BaseWindow
4040
[SerializeField] private CacheUpdateEvent lastCurrentBranchAndRemoteChangedEvent;
4141
[NonSerialized] private bool currentBranchAndRemoteHasUpdate;
4242

43-
[NonSerialized] private bool hasRunMaybeUpdateDataWithRepository;
44-
4543
[MenuItem(LaunchMenu)]
4644
public static void Window_GitHub()
4745
{
@@ -191,10 +189,8 @@ private void MaybeUpdateData()
191189

192190
if (Repository != null)
193191
{
194-
if (!hasRunMaybeUpdateDataWithRepository || currentBranchAndRemoteHasUpdate)
192+
if (currentBranchAndRemoteHasUpdate)
195193
{
196-
hasRunMaybeUpdateDataWithRepository = true;
197-
198194
var repositoryCurrentBranch = Repository.CurrentBranch;
199195
var updatedRepoBranch = repositoryCurrentBranch.HasValue ? repositoryCurrentBranch.Value.Name : null;
200196

0 commit comments

Comments
 (0)