Skip to content

Commit

Permalink
fix issue with log generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fma965 committed Jan 2, 2021
1 parent ebf7a03 commit 0a8234e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions UI/Tabs/DownloadViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,11 @@ private void CopyComplete()

DownloadInfo = LanguageManager.GetValue("String.Completed");
ApplicationManager.Instance.IsDownloading = false;

Application.Current.Dispatcher.Invoke(() =>
{
USBHelper.GenerateLog(Log, MessageBox.MessageBox.Show(LanguageManager.GetValue("MessageBox.UploadLog"), "Syn3 Updater", MessageBoxButton.YesNo,
MessageBoxImage.Information) == MessageBoxResult.Yes);

if (_action == "main")
{
if (MessageBox.MessageBox.Show(LanguageManager.GetValue("MessageBox.UpdateCurrentversion"), "Syn3 Updater", MessageBoxButton.YesNo,
Expand Down Expand Up @@ -376,8 +378,6 @@ private void CopyComplete()


});
USBHelper.GenerateLog(Log, MessageBox.MessageBox.Show(LanguageManager.GetValue("MessageBox.UploadLog"), "Syn3 Updater", MessageBoxButton.YesNo,
MessageBoxImage.Information) == MessageBoxResult.Yes);
Reset();
}

Expand Down
2 changes: 1 addition & 1 deletion UI/Tabs/HomeViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ private void UpdateDriveInfo()
// Update app level vars
ApplicationManager.Instance.DriveFileSystem = driveInfo.FileSystem;
ApplicationManager.Instance.DrivePartitionType = driveInfo.PartitionType;
ApplicationManager.Instance.DriveName = driveInfo.Name;
ApplicationManager.Instance.DriveName = SelectedDrive?.Name;
ApplicationManager.Instance.SkipFormat = driveInfo.SkipFormat;

// Update local level vars
Expand Down

0 comments on commit 0a8234e

Please sign in to comment.