diff options
author | sr55 <[email protected]> | 2013-09-03 17:01:14 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-09-03 17:01:14 +0000 |
commit | 2a344e45c4ed8f98e872066aa506512063d5ae51 (patch) | |
tree | 24ef953c10805458513d225eef58c2388e5c67ed /win/CS/HandBrakeWPF/AttachedProperties | |
parent | bcb1dcedb04fabcde6475daa2d8c9bf01c128139 (diff) |
WinGui: Change the implementation of the Source Menu Image handling. Hopefully this might workaround a crash some people are seeing in the .NET BitmapDecoder object.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5765 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/AttachedProperties')
-rw-r--r-- | win/CS/HandBrakeWPF/AttachedProperties/DriveMenu.cs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/AttachedProperties/DriveMenu.cs b/win/CS/HandBrakeWPF/AttachedProperties/DriveMenu.cs index 8c12ca820..ffe8fe634 100644 --- a/win/CS/HandBrakeWPF/AttachedProperties/DriveMenu.cs +++ b/win/CS/HandBrakeWPF/AttachedProperties/DriveMenu.cs @@ -12,10 +12,8 @@ namespace HandBrakeWPF.AttachedProperties using System;
using System.Collections.Generic;
using System.Linq;
- using System.Threading;
using System.Windows;
using System.Windows.Controls;
- using System.Windows.Media.Imaging;
using HandBrake.ApplicationServices.Exceptions;
using HandBrake.ApplicationServices.Utilities;
@@ -119,7 +117,6 @@ namespace HandBrakeWPF.AttachedProperties let driveInformation = item
select new SourceMenuItem
{
- Image = new Image { Source = new BitmapImage(new Uri("pack://application:,,,/HandBrake;component/Views/Images/disc_small.png")), Width = 16, Height = 16 },
Text = string.Format("{0} ({1})", item.RootDirectory, item.VolumeLabel),
Command = new SourceMenuCommand(() => mvm.ProcessDrive(driveInformation)),
Tag = item,
|