diff options
Diffstat (limited to 'win/CS/ToolWindows')
-rw-r--r-- | win/CS/ToolWindows/AdvancedAudio.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/win/CS/ToolWindows/AdvancedAudio.cs b/win/CS/ToolWindows/AdvancedAudio.cs index fba1f7cb6..6b4ebed61 100644 --- a/win/CS/ToolWindows/AdvancedAudio.cs +++ b/win/CS/ToolWindows/AdvancedAudio.cs @@ -20,7 +20,7 @@ namespace Handbrake.ToolWindows private static readonly CultureInfo Culture = new CultureInfo("en-US", false);
/// <summary>
- /// The Advanced Audio Panel
+ /// Initializes a new instance of the <see cref="AdvancedAudio"/> class.
/// </summary>
public AdvancedAudio()
{
@@ -71,9 +71,13 @@ namespace Handbrake.ToolWindows drcValue = ((track.DRC * 10) + 1) - 10;
int.TryParse(drcValue.ToString(Culture), out drcCalculated);
tb_drc.Value = drcCalculated;
- lbl_drc.Text = track.DRC.ToString();
+ lbl_drc.Text = track.DRC.ToString(Culture);
tb_drc.Enabled = track.TrackDisplay.Contains("(AC3)");
+ if (!tb_drc.Enabled)
+ {
+ Console.WriteLine("test");
+ }
}
}
@@ -140,7 +144,7 @@ namespace Handbrake.ToolWindows else
value = ((tb_drc.Value - 1) / 10.0) + 1;
- lbl_drc.Text = value.ToString();
+ lbl_drc.Text = value.ToString(Culture);
track.DRC = value;
}
}
|