Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Commit

Permalink
Version 20.4.1:
Browse files Browse the repository at this point in the history
- Fixed bug with patching exeption on UI display
- Minimized UI impact from non-critical bug that will soon be fixed.
  • Loading branch information
Willster419 committed Mar 12, 2017
1 parent 851aa0f commit bd7692e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
35 changes: 23 additions & 12 deletions RelicModManager/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public partial class MainWindow : Form
private string modAudioFolder;//res_mods/versiondir/audioww
private string tempPath = Path.GetTempPath();//C:/users/userName/appdata/local/temp
private const int MBDivisor = 1048576;
private string managerVersion = "version 20.4";
private string managerVersion = "version 20.4.1";
private string tanksLocation;//sample: c:/games/World_of_Tanks
private SelectFeatures features = new SelectFeatures();
//queue for downloading mods
Expand Down Expand Up @@ -496,8 +496,9 @@ private void patchFiles()
foreach (Patch p in patchList)
{
string patchFileOutput = p.file;
if (p.file.Length > 15)
patchFileOutput = p.file.Substring(0,30);
int maxLength = 30;
if (p.file.Length > maxLength)
patchFileOutput = p.file.Substring(0, maxLength);
downloadProgress.Text = "patching " + patchFileOutput + "...";
Application.DoEvents();
if (p.type.Equals("regx"))
Expand Down Expand Up @@ -2216,18 +2217,28 @@ private void extractworker_DoWork(object sender, DoWorkEventArgs e)
//handler for the extractworker when progress is made
private void extractworker_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
if (childProgressBar.Maximum != childMaxProgres)
childProgressBar.Maximum = childMaxProgres;
if (childCurrentProgres != 0)
childProgressBar.Value = childCurrentProgres;
if (currentZipEntry.Length >= 47)
try
{
downloadProgress.Text = currentZipEntry.Substring(0, 47) + "...";
if (childProgressBar.Maximum != childMaxProgres)
childProgressBar.Maximum = childMaxProgres;
if (childCurrentProgres != 0)
childProgressBar.Value = childCurrentProgres;
if (currentZipEntry.Length >= 47)
{
downloadProgress.Text = currentZipEntry.Substring(0, 47) + "...";
}
if (isParrentDone)
{
if (parrentProgressBar.Value != parrentProgressBar.Maximum)
parrentProgressBar.Value++;
}
}
if (isParrentDone)
catch (NullReferenceException ne)
{
if (parrentProgressBar.Value != parrentProgressBar.Maximum)
parrentProgressBar.Value++;
Settings.appendToLog("EXEPTION: traceback from instance: " + ne.InnerException);
Settings.appendToLog("Message: " + ne.Message);
Settings.appendToLog("From source: " + ne.Source);
Settings.appendToLog("Callstack: " + ne.StackTrace);
}
}
//handler for when the extractworker is completed
Expand Down
2 changes: 1 addition & 1 deletion RelicModManager/bin/Debug/manager version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version 20.4
version 20.4.1
4 changes: 4 additions & 0 deletions RelicModManager/bin/Debug/releaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 20.4.1:
- Fixed bug with patching exeption on UI display
- Minimized UI impact from non-critical bug that will soon be fixed.

Version 20.4:
- Added feature to backup user created data files to restore after modpack installation (like session stats)
- Improved downlader UI
Expand Down
Binary file added RelicModManager/bugReports/03/exeption.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bd7692e

Please sign in to comment.