Skip to content

Commit

Permalink
fixed update logo flasher
Browse files Browse the repository at this point in the history
  • Loading branch information
zezba9000 committed Nov 20, 2017
1 parent 15ec863 commit 08a4f6c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion GitCommander/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

public static class VersionInfo
{
public const string version = "0.9.9";
public const string version = "1.0.0";

#if DEBUG
public const string versionType = version + "d";
Expand Down
3 changes: 1 addition & 2 deletions GitItGUI.UI/Screens/StartScreen.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,5 @@

<!-- Update Button -->
<Image Name="updateImage" Source="../Images/Update.png" HorizontalAlignment="Left" VerticalAlignment="Top" Width="64" Height="64" Margin="10" ToolTip="Update avaliable!"/>
<Image Name="updateFlashImage" Source="../Images/UpdateFlash.png" HorizontalAlignment="Left" VerticalAlignment="Top" Width="64" Height="64" Margin="10" ToolTip="Update avaliable!" Visibility="Hidden"/>
</Grid>
</Grid>
</UserControl>
10 changes: 8 additions & 2 deletions GitItGUI.UI/Screens/StartScreen.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Windows.Controls;
using System;
using System.Windows.Threading;
using System.Windows.Media.Imaging;

namespace GitItGUI.UI.Screens
{
Expand All @@ -16,13 +17,17 @@ public partial class StartScreen : UserControl
{
public static StartScreen singleton;
private DispatcherTimer timer;
private bool outOfDate;
private bool outOfDate, outOfDateFlash;
private BitmapImage outOfDateImage, outOfDateImageFlash;

public StartScreen()
{
singleton = this;
InitializeComponent();

outOfDateImage = new BitmapImage(new Uri(@"pack://application:,,,/GitItGUI.UI;component/Images/Update.png"));
outOfDateImageFlash = new BitmapImage(new Uri(@"pack://application:,,,/GitItGUI.UI;component/Images/UpdateFlash.png"));

updateImage.Visibility = Visibility.Hidden;
updateImage.MouseUp += UpdateImage_MouseUp;
timer = new DispatcherTimer(TimeSpan.FromSeconds(.25), DispatcherPriority.Background, DispatcherCallback, Dispatcher);
Expand All @@ -32,7 +37,8 @@ private void DispatcherCallback(object sender, EventArgs e)
{
if (outOfDate && Visibility == Visibility.Visible)
{
updateFlashImage.Visibility = updateFlashImage.Visibility == Visibility.Hidden ? Visibility.Visible : Visibility.Hidden;
updateImage.Source = outOfDateFlash ? outOfDateImage : outOfDateImageFlash;
outOfDateFlash = !outOfDateFlash;
}
}

Expand Down
2 changes: 1 addition & 1 deletion GitItGUI.UI/VersionInfo.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<VersionInfo>
<AppVersion>0.9.9</AppVersion>
<AppVersion>1.0.0</AppVersion>
</VersionInfo>
4 changes: 2 additions & 2 deletions Installer/Git-It-GUI_Installer.aip
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<ROW Property="ARPURLUPDATEINFO" Value="https://github.com/reignstudios/Git-It-GUI/releases"/>
<ROW Property="CTRLS" Value="2"/>
<ROW Property="Manufacturer" Value="Reign-Studios"/>
<ROW Property="ProductCode" Value="1033:{2960A755-B773-4F46-8919-CD3034AC8869} " Type="16"/>
<ROW Property="ProductCode" Value="1033:{28459DFB-62CE-4CEC-BF83-944AEE8E9A8D} " Type="16"/>
<ROW Property="ProductLanguage" Value="1033"/>
<ROW Property="ProductName" Value="Git-It-GUI"/>
<ROW Property="ProductVersion" Value="0.9.9" Type="32"/>
<ROW Property="ProductVersion" Value="1.0.0" Type="32"/>
<ROW Property="RUNAPPLICATION" Value="1" Type="4"/>
<ROW Property="SecureCustomProperties" Value="OLDPRODUCTS;AI_NEWERPRODUCTFOUND"/>
<ROW Property="UpgradeCode" Value="{FD4A5E78-F668-42CE-90BC-D1DDAA792189}"/>
Expand Down

0 comments on commit 08a4f6c

Please sign in to comment.