Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
Unity
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shane Veasy
Unity
Commits
aa184437
Commit
aa184437
authored
8 years ago
by
Emil "AngryAnt" Johansen
Browse files
Options
Downloads
Patches
Plain Diff
Move auto-runner from GitStatusTask to Window.
parent
b621e808
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/GitHub.Unity/Assets/Plugins/GitHub/Editor/GitStatusTask.cs
+0
-16
0 additions, 16 deletions
...itHub.Unity/Assets/Plugins/GitHub/Editor/GitStatusTask.cs
src/GitHub.Unity/Assets/Plugins/GitHub/Editor/Window.cs
+26
-1
26 additions, 1 deletion
src/GitHub.Unity/Assets/Plugins/GitHub/Editor/Window.cs
with
26 additions
and
17 deletions
src/GitHub.Unity/Assets/Plugins/GitHub/Editor/GitStatusTask.cs
+
0
−
16
View file @
aa184437
...
...
@@ -10,22 +10,6 @@ using System.Collections.Generic;
namespace
GitHub.Unity
{
class
GitStatusTaskRunner
:
AssetPostprocessor
{
[
InitializeOnLoadMethod
]
static
void
OnLoad
()
{
Tasks
.
ScheduleMainThread
(()
=>
GitStatusTask
.
Schedule
());
}
static
void
OnPostprocessAllAssets
(
string
[]
imported
,
string
[]
deleted
,
string
[]
moveDestination
,
string
[]
moveSource
)
{
GitStatusTask
.
Schedule
();
}
}
enum
GitFileStatus
{
Untracked
,
...
...
This diff is collapsed.
Click to expand it.
src/GitHub.Unity/Assets/Plugins/GitHub/Editor/Window.cs
+
26
−
1
View file @
aa184437
...
...
@@ -9,6 +9,31 @@ using Object = UnityEngine.Object;
namespace
GitHub.Unity
{
class
RefreshRunner
:
AssetPostprocessor
{
[
InitializeOnLoadMethod
]
static
void
OnLoad
()
{
Tasks
.
ScheduleMainThread
(
Refresh
);
}
static
void
OnPostprocessAllAssets
(
string
[]
imported
,
string
[]
deleted
,
string
[]
moveDestination
,
string
[]
moveSource
)
{
Refresh
();
}
static
void
Refresh
()
{
foreach
(
Window
window
in
Object
.
FindObjectsOfType
(
typeof
(
Window
)))
{
window
.
Refresh
();
}
}
}
public
class
Window
:
EditorWindow
{
enum
ViewMode
...
...
@@ -499,7 +524,7 @@ namespace GitHub.Unity
}
void
Refresh
()
public
void
Refresh
()
{
if
(
viewMode
==
ViewMode
.
History
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment