From 8e57aaf22e7b27ea5c56b1a689a6226b858b8c2a Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 13 May 2009 20:07:52 +0000 Subject: WinGui: - Fix Activity Log window not updating for scan log - Fix Process Affinity not being set for encodes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2417 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/frmActivityWindow.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'win/C#/frmActivityWindow.cs') diff --git a/win/C#/frmActivityWindow.cs b/win/C#/frmActivityWindow.cs index d2d1ff17a..dc979f28e 100644 --- a/win/C#/frmActivityWindow.cs +++ b/win/C#/frmActivityWindow.cs @@ -22,11 +22,12 @@ namespace Handbrake Queue.QueueHandler encodeQueue; int position; // Position in the arraylist reached by the current log output in the rtf box. string logDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs"; + private frmMain mainWin; /// /// This window should be used to display the RAW output of the handbrake CLI which is produced during an encode. /// - public frmActivityWindow(string file, Queue.QueueHandler eh) + public frmActivityWindow(string file, Queue.QueueHandler eh, frmMain mw) { InitializeComponent(); @@ -34,6 +35,7 @@ namespace Handbrake encodeQueue = eh; read_file = file; position = 0; + mainWin = mw; // When the window closes, we want to abort the monitor thread. this.Disposed += new EventHandler(forceQuit); @@ -111,7 +113,7 @@ namespace Handbrake updateTextFromThread(); while (true) { - if (encodeQueue.isEncoding) + if (encodeQueue.isEncoding || mainWin.isScanning) updateTextFromThread(); else { -- cgit v1.2.3