summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-06-06 01:00:56 +0000
committersr55 <[email protected]>2012-06-06 01:00:56 +0000
commit20bdd49d52b0412764ac6a2e20f0a3c3689cd409 (patch)
treee7c716ebe1a44288dfca121d1529f295e777c85f /win/CS/HandBrakeWPF/ViewModels
parent20f490e516f71ec88fd29dd6a7cb5404d52e8ab9 (diff)
WinGui: Order Language listboxes on the Options / Audio and Subtitles Tab
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4713 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
index 47189db9b..52ef447e0 100644
--- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
@@ -1505,7 +1505,7 @@ namespace HandBrakeWPF.ViewModels
/// </summary>
public void LanguageMoveLeft()
{
- if (this.AvailableLanguages.Count > 0)
+ if (this.SelectedLangauges.Count > 0)
{
List<string> copiedList = SelectedAvailableToMove.ToList();
foreach (string item in copiedList)
@@ -1513,6 +1513,8 @@ namespace HandBrakeWPF.ViewModels
this.AvailableLanguages.Remove(item);
this.SelectedLangauges.Add(item);
}
+
+ this.AvailableLanguages = new BindingList<string>(this.AvailableLanguages.OrderBy(o => o).ToList());
}
}
@@ -1521,7 +1523,7 @@ namespace HandBrakeWPF.ViewModels
/// </summary>
public void LanguageMoveRight()
{
- if (this.SelectedLangauges.Count > 0)
+ if (this.SelectedLangaugesToMove.Count > 0)
{
List<string> copiedList = SelectedLangaugesToMove.ToList();
foreach (string item in copiedList)
@@ -1541,6 +1543,7 @@ namespace HandBrakeWPF.ViewModels
{
this.AvailableLanguages.Add(item);
}
+ this.AvailableLanguages = new BindingList<string>(this.AvailableLanguages.OrderBy(o => o).ToList());
this.SelectedLangauges.Clear();
}