Skip to content

Commit

Permalink
Revert .Net 4.6.1 specific changes
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrondeau committed Mar 12, 2016
1 parent f673678 commit 28937df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GoToWindow/Squirrel/SquirrelUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static SquirrelUpdater()
Enabled = executablePath.StartsWith(appDataPath, StringComparison.InvariantCultureIgnoreCase);

if (!Enabled)
Log.Info($"Updates are disabled because GoToWindow is not running from the AppData directory. Executable: {executablePath}, App Data: {appDataPath}");
Log.Info(String.Format("Updates are disabled because GoToWindow is not running from the AppData directory. Executable: {0}, App Data: {1}", executablePath, appDataPath));
}

public SquirrelUpdater(string updateUrl)
Expand Down
10 changes: 8 additions & 2 deletions GoToWindow/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,15 @@ public void AskClose()

private ISearchResult GetEntryAt(int index)
{
var items = Windows?.View?.Cast<ISearchResult>().ToArray();
if (Windows == null || Windows.View == null)
return null;

return index < items?.Length ? items[index] : null;
var items = Windows.View.Cast<ISearchResult>().ToArray();

if (index < items.Length)
return items[index];

return null;
}

private void GoToWindowEntryShortcutCommand_Executed(object sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion GoToWindow/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="DeltaCompressionDotNet" version="2.0.0.0-rc1" targetFramework="net45" />
<package id="DeltaCompressionDotNet" version="1.0.0" targetFramework="net45" />
<package id="Hardcodet.NotifyIcon.Wpf" version="1.0.5" targetFramework="net45" />
<package id="log4net" version="2.0.5" targetFramework="net45" />
<package id="Mono.Cecil" version="0.9.6.1" targetFramework="net45" />
Expand Down

0 comments on commit 28937df

Please sign in to comment.