diff options
author | sr55 <[email protected]> | 2012-09-30 14:35:20 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-09-30 14:35:20 +0000 |
commit | 4228b01470a3f5d8798bce4aaad28d8481497911 (patch) | |
tree | 6eebb3a295b1a7f5ca160a8ae2f044570f61a2b6 /win/CS/HandBrakeWPF | |
parent | ab78d646ad7feb94e534c50f9e6386ba87edd9cb (diff) |
WinGui: Improvements to status messages.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4999 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index b68237883..081272a4d 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1627,8 +1627,29 @@ namespace HandBrakeWPF.ViewModels }
this.ShowStatusWindow = false;
- this.SourceLabel = "Scan Completed";
- this.StatusLabel = "Scan Completed";
+ if (e.Successful)
+ {
+ if (this.SelectedTitle != null && !string.IsNullOrEmpty(this.SelectedTitle.SourceName))
+ {
+ this.SourceLabel = this.SelectedTitle.SourceName;
+ }
+ else
+ {
+ this.SourceLabel = this.SourceName;
+ }
+
+ this.StatusLabel = "Scan Completed";
+ }
+ else if (!e.Successful && e.Exception == null)
+ {
+ this.SourceLabel = "Scan Cancelled.";
+ this.StatusLabel = "Scan Cancelled.";
+ }
+ else
+ {
+ this.SourceLabel = "Scan Failed... See Activity Log for details.";
+ this.StatusLabel = "Scan Failed... See Activity Log for details.";
+ }
});
}
|