summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs
index 0e8d5ab6a..baead2f52 100644
--- a/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs
@@ -16,6 +16,8 @@ namespace HandBrakeWPF.ViewModels
using Caliburn.Micro;
+ using HandBrake.Worker.Logging.Models;
+
using HandBrakeWPF.Properties;
using HandBrakeWPF.Services.Interfaces;
using HandBrakeWPF.Utilities;
@@ -23,7 +25,6 @@ namespace HandBrakeWPF.ViewModels
using ILog = HandBrakeWPF.Services.Logging.Interfaces.ILog;
using LogEventArgs = HandBrakeWPF.Services.Logging.EventArgs.LogEventArgs;
- using LogMessage = HandBrakeWPF.Services.Logging.Model.LogMessage;
using LogService = HandBrakeWPF.Services.Logging.LogService;
/// <summary>
@@ -96,7 +97,7 @@ namespace HandBrakeWPF.ViewModels
// Refresh the Log Display
this.log.Clear();
- foreach (LogMessage logMessage in this.logService.LogMessages)
+ foreach (LogMessage logMessage in this.logService.GetLogMessages())
{
this.log.AppendLine(logMessage.Content);
this.lastReadIndex = logMessage.MessageIndex;
@@ -156,7 +157,7 @@ namespace HandBrakeWPF.ViewModels
this.log.Clear();
this.lastReadIndex = 0;
- foreach (LogMessage logMessage in this.logService.LogMessages)
+ foreach (LogMessage logMessage in this.logService.GetLogMessages())
{
this.log.AppendLine(logMessage.Content);
this.lastReadIndex = logMessage.MessageIndex;