Permalink
Browse files

Fixed a bug with the check for updates mechanism

  • Loading branch information...
Markus Kwaśnicki
Markus Kwaśnicki committed Aug 15, 2012
1 parent a22536b commit 13da6b4d2489c1f942a2be9ee45424467c9ee25d
Showing with 43 additions and 11 deletions.
  1. +10 −1 Localization.Designer.cs
  2. +3 −0 Localization.de.resx
  3. +3 −0 Localization.es.resx
  4. +3 −0 Localization.pl.resx
  5. +3 −0 Localization.resx
  6. +2 −2 Properties/AssemblyInfo.cs
  7. +11 −5 ReadMe.htm
  8. +7 −2 WlipperForm.cs
  9. +1 −1 wlipper.xml
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -140,4 +140,7 @@
<data name="UPDATE_FAIL" xml:space="preserve">
<value>Die Prüfung auf Aktualisierung ist fehlgeschlagen!</value>
</data>
<data name="NO_UPDATE_AVAILABLE" xml:space="preserve">
<value>Du glücklicher! Wlipper ist aktuell.</value>
</data>
</root>
View
@@ -133,6 +133,9 @@
<data name="NOSAVE" xml:space="preserve">
<value>¡No es posible guardar las preferencias!</value>
</data>
<data name="NO_UPDATE_AVAILABLE" xml:space="preserve">
<value>¡Qué suerte! Wlipper es hasta la fecha.</value>
</data>
<data name="UPDATE_AVAILABLE" xml:space="preserve">
<value>Una nueva versión de Wlipper está disponible. Nueva versión: {0}, versión actual: {1} - ¿Quiere visitar la página web del proyecto para descargar el software?</value>
<comment>{0} = new version, {1} = current version</comment>
View
@@ -133,6 +133,9 @@
<data name="NOSAVE" xml:space="preserve">
<value>Nie można zapisać preferencji!</value>
</data>
<data name="NO_UPDATE_AVAILABLE" xml:space="preserve">
<value>Masz szczęście! Wlipper jest aktualne.</value>
</data>
<data name="UPDATE_AVAILABLE" xml:space="preserve">
<value>Nowa wersja Wlippera dostępna. Nowa wersja: {0}, obecna wersja: {1} - Chcesz odwiedzić stronę projektu by zaktualizować?</value>
<comment>{0} = new version, {1} = current version</comment>
View
@@ -133,6 +133,9 @@
<data name="NOSAVE" xml:space="preserve">
<value>Unable to save preferences!</value>
</data>
<data name="NO_UPDATE_AVAILABLE" xml:space="preserve">
<value>Lucky you! Wlipper is up to date.</value>
</data>
<data name="UPDATE_AVAILABLE" xml:space="preserve">
<value>A new version of Wlipper is available. New version: {0}, current version: {1} - Do you want to visit the project web site for download?</value>
<comment>{0} = new version, {1} = current version</comment>
@@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.6.8.5")]
[assembly: AssemblyFileVersion("3.6.8.5")]
[assembly: AssemblyVersion("3.6.9.5")]
[assembly: AssemblyFileVersion("3.6.9.5")]
View
@@ -30,23 +30,23 @@ <h2>
Version
</h2>
<p>
3.6.8.5
3.6.9.5
</p>
<h2>
Description
</h2>
<p>
<a href="http://wlipper.sourceforge.net/">
<a href="http://wlipper.kwasniccy.eu/">
<b>Wlipper</b>
</a> is a <i>
Windows Clipboard
Utility Software
Windows Clipboard History Utility Software
</i> equivalent to <a href="http://en.wikipedia.org/wiki/Klipper">
KDE's
<i>Klipper</i>
</a> or <a href="http://en.wikipedia.org/wiki/Glipper">
</a>, <a href="http://en.wikipedia.org/wiki/Glipper">
GNOME's <i>Glipper</i>
</a>
or <a href="http://jumpcut.sourceforge.net/">Jumpcut for Mac</a>
respectively. Any text copied to the clipboard will be kept in memory
for later use during the session. It works with all applications which provide clipboard functionality.
</p>
@@ -131,6 +131,12 @@ <h2>
</h2>
<!-- Major.Minor.Bugfix.Revision -->
<ul>
<li>
<b>3.6.9.5</b>
<ul>
<li>Fixed a bug with the check for updates mechanism.</li>
</ul>
</li>
<li>
<b>3.6.8.5</b>
<ul>
View
@@ -162,7 +162,7 @@ public WlipperForm()
InitializeDocument();
LoadPreferences();
RegisterWindowToChain();
CheckForUpdate();
CheckForUpdate(false);
}
#endregion
@@ -628,7 +628,7 @@ public uint GetHistories()
/// <summary>
/// Check for update availability and pop up a message if so.
/// </summary>
private bool CheckForUpdate()
private bool CheckForUpdate(bool silent = true)
{
try
{
@@ -657,6 +657,11 @@ private bool CheckForUpdate()
Process.Start(Naming.PROJECT_SITE);
}
}
// Do not notify for no available updates while instantiating
else if(0 == comparison && silent)
{
MessageBox.Show(Localization.NO_UPDATE_AVAILABLE, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
catch
{
View
@@ -2,5 +2,5 @@
<!-- Common information about Wlipper -->
<application>
<name>Wlipper</name>
<version>3.6.8.5</version>
<version>3.6.9.5</version>
</application>

0 comments on commit 13da6b4

Please sign in to comment.