Skip to content

Commit

Permalink
Show error state in Update window, make Build.ps1 work even though Se…
Browse files Browse the repository at this point in the history
…tup.exe is not copied.
  • Loading branch information
christianrondeau committed Sep 28, 2014
1 parent f18a7f0 commit 28a2260
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ If(Test-Path -Path $OutputSetupExe) {
}

&($Squirrel) -g $SetupLoadingGif --releasify $NuPkgPath
Rename-Item "$ReleasesFolder\Setup.exe" $OutputSetupExe

$SquirrelSetupExe = "$ReleasesFolder\Setup.exe"
If(Test-Path -Path $SquirrelSetupExe) {
Rename-Item $SquirrelSetupExe $OutputSetupExe
}

# ==================================== Cleanup

Expand Down
3 changes: 2 additions & 1 deletion GoToWindow/ViewModels/UpdateViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ private void UpdateCallback(UpdateStatus updateStatus, int progress)
}

private void UpdateErrorCallback(Exception exc)
{
{
UpdateStatus = UpdateStatus.Error;
Enabled = true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion GoToWindow/Windows/UpdateWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<ProgressBar Height="24" Maximum="100" Value="20" Margin="0,8,0,8"></ProgressBar>

<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="_Close" IsEnabled="{Binding Enabled}" Click="Button_Click" />
<Button Content="_Close" IsEnabled="{Binding Enabled}" Click="Button_Click" Padding="4" />
</StackPanel>
</StackPanel>
</Grid>
Expand Down

0 comments on commit 28a2260

Please sign in to comment.