Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.

Commit 3caec9d

Browse files
committed
check .sln file for modified date, fixes #46
1 parent f8c7063 commit 3caec9d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

UnityLauncher/Form1.cs

+10-4
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ void UpdateRecentProjectsList()
282282
}
283283

284284
// first check if whole folder exists, if not, skip
285-
if (Directory.Exists(projectPath)==false)
285+
if (Directory.Exists(projectPath) == false)
286286
{
287287
continue;
288288
}
@@ -305,6 +305,12 @@ void UpdateRecentProjectsList()
305305

306306
string csprojFile = Path.Combine(projectPath, projectName + ".csproj");
307307

308+
// solution only
309+
if (File.Exists(csprojFile) == false)
310+
{
311+
csprojFile = Path.Combine(projectPath, projectName + ".sln");
312+
}
313+
308314
// editor only project
309315
if (File.Exists(csprojFile) == false)
310316
{
@@ -878,15 +884,15 @@ private void btnOpenLogFolder_Click(object sender, EventArgs e)
878884
private void gridRecent_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e)
879885
{
880886
List<int> gridWidths;
881-
if (Properties.Settings.Default.gridColumnWidths != null )
887+
if (Properties.Settings.Default.gridColumnWidths != null)
882888
{
883889
gridWidths = new List<int>(Properties.Settings.Default.gridColumnWidths);
884890
}
885891
else
886892
{
887893
gridWidths = new List<int>();
888894
}
889-
895+
890896
// restore data grid view widths
891897
var colum = gridRecent.Columns[0];
892898
for (int i = 0; i < gridRecent.Columns.Count; ++i)
@@ -1144,7 +1150,7 @@ void CheckUpdates()
11441150
}
11451151
else
11461152
{
1147-
SetStatus("No updates available. Current release is " + (float.Parse(previousGitRelease)+0.01f));
1153+
SetStatus("No updates available. Current release is " + (float.Parse(previousGitRelease) + 0.01f));
11481154
}
11491155
}
11501156

0 commit comments

Comments
 (0)