Skip to content

Commit

Permalink
fixed update-notices. fixed edit-more-button.
Browse files Browse the repository at this point in the history
  • Loading branch information
cadaei committed Jan 31, 2017
1 parent ca485cf commit 98f69e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions ARKBreedingStats/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,7 @@ private void checkForUpdates(bool silentCheck = false)
{
bool updated = false;
bool newToolVersionAvailable = false;
bool newValuesAvailable = false;
try
{
string remoteUri = "https://github.com/cadon/ARKStatsExtractor/raw/master/ARKBreedingStats/";
Expand Down Expand Up @@ -1463,7 +1464,7 @@ private void checkForUpdates(bool silentCheck = false)
remoteFileVer = 0;
if (Int32.TryParse(remoteVers[0], out remoteFileVer) && Values.V.version < remoteFileVer)
{
// backup the current version (to safe user added custom commands)
newValuesAvailable = true;
if (MessageBox.Show("There is a new version of the values-file \"" + filename + "\", do you want to update it?\n\nIf you play on a console (Xbox or PS4) make a backup of the current file before you click on Yes, as the updated values may not work with the console-version for some time.\nUsually it takes some days to weeks until the changes are valid on the consoles as well.", "Update Values-File?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
// System.IO.File.Copy(filename, filename + "_backup_" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".json");
Expand All @@ -1489,9 +1490,9 @@ private void checkForUpdates(bool silentCheck = false)
updateStatusBar();
}
else
MessageBox.Show("Download of new stat successful, but files couldn't be loaded.\nTry again later, revert the backuped files (..._backup_[timestamp].json) or redownload the tool.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBox.Show("Download of new stat successful, but files couldn't be loaded.\nTry again later, or redownload the tool.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else if (!silentCheck)
else if (!silentCheck && (newToolVersionAvailable || newValuesAvailable))
{
MessageBox.Show("You already have the newest version of the" + (!newToolVersionAvailable ? " tool and the" : "") + " values-file.\n\nIf your stats are outdated and no new version is available, we probably don't have the new ones either.", "No new Version", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
Expand Down Expand Up @@ -3243,7 +3244,7 @@ private void updateStatusBar()

private void editBoxCreatureInTester(object sender, Creature c)
{
editCreatureInTester(c, true);
editCreatureInTester(c);
}
}
}
2 changes: 1 addition & 1 deletion ARKBreedingStats/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("0.20.11")]
[assembly: AssemblyFileVersion("0.20.11.1")]
2 changes: 1 addition & 1 deletion ARKBreedingStats/ver.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2540000,0.20.11.0
2540000,0.20.11.1

0 comments on commit 98f69e3

Please sign in to comment.