diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs | 7 |
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();
}
|