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

Commit 6328b02

Browse files
Moving IsBusy definition to IView
1 parent 72625fe commit 6328b02

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,10 @@ public override void Finish(bool result)
7373
Close();
7474
base.Finish(result);
7575
}
76+
77+
public override bool IsBusy
78+
{
79+
get { return authView.IsBusy; }
80+
}
7681
}
7782
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ public virtual void OnSelectionChange()
126126

127127
public virtual Rect Position { get { return position; } }
128128
public IApplicationManager Manager { get; private set; }
129+
public abstract bool IsBusy { get; }
129130
public IRepository Repository { get { return inLayout ? cachedRepository : Environment.Repository; } }
130131
public bool HasRepository { get { return Environment.RepositoryPath != null; } }
131132

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ interface IView
1616
IRepository Repository { get; }
1717
bool HasRepository { get; }
1818
IApplicationManager Manager { get; }
19+
bool IsBusy { get; }
1920
}
2021
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,10 @@ public override void Finish(bool result)
6464
Close();
6565
base.Finish(result);
6666
}
67+
68+
public override bool IsBusy
69+
{
70+
get { return publishView.IsBusy; }
71+
}
6772
}
6873
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ public override void OnSelectionChange()
142142
ActiveTab.OnSelectionChange();
143143
}
144144

145+
public override bool IsBusy
146+
{
147+
get { return false; }
148+
}
149+
145150
public override void Refresh()
146151
{
147152
base.Refresh();

0 commit comments

Comments
 (0)