Skip to content

Commit

Permalink
changes for 3.40.3
Browse files Browse the repository at this point in the history
Now you can set size limit default, find it in General tab #88
  • Loading branch information
argorar committed Aug 7, 2024
1 parent fc4cbb9 commit a128757
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 8 deletions.
37 changes: 37 additions & 0 deletions MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ private void CheckAppSettings()

if (!configuration.AppSettings.Settings.AllKeys.Contains("BorderColor"))
configuration.AppSettings.Settings.Add("BorderColor", "");

if (!configuration.AppSettings.Settings.AllKeys.Contains("SizeLimit"))
configuration.AppSettings.Settings.Add("SizeLimit", "");
}

private void ToolTip()
Expand Down Expand Up @@ -343,6 +346,13 @@ private void LoadConfiguration()
if (!String.IsNullOrEmpty(configuration.AppSettings.Settings["PathDownload"].Value))
textPathDownloaded.Text = configuration.AppSettings.Settings["PathDownload"].Value;

if (!String.IsNullOrEmpty(configuration.AppSettings.Settings["SizeLimit"].Value))
{
txtDefaultSizeLimit.Text = configuration.AppSettings.Settings["SizeLimit"].Value;
boxLimit.Text = configuration.AppSettings.Settings["SizeLimit"].Value;
}


boxDefaultText.Text = configuration.AppSettings.Settings["Text"].Value;
CRF4k.Value = Decimal.Parse(configuration.AppSettings.Settings["CRF4k"].Value);
CRFother.Value = Decimal.Parse(configuration.AppSettings.Settings["CRFother"].Value);
Expand Down Expand Up @@ -1531,7 +1541,6 @@ private void boxNGOV_CheckedChanged(object sender, EventArgs e)
private void DefaultSettings()
{
boxTitle.Text =
boxLimit.Text =
boxBitrate.Text =
boxAudioBitrate.Text =
boxFrameRate.Text =
Expand All @@ -1552,6 +1561,7 @@ private void DefaultSettings()
numericNormalization.Value = 1;
comboLevels.SelectedIndex = 0;

boxLimit.Text = String.IsNullOrEmpty(txtDefaultSizeLimit.Text) ? string.Empty : txtDefaultSizeLimit.Text;
var threads = Environment.ProcessorCount;
trackThreads.Value = Math.Min(trackThreads.Maximum, Math.Max(trackThreads.Minimum, threads));
cache.Clear();
Expand Down Expand Up @@ -3210,5 +3220,10 @@ private void buttonRemove_Click(object sender, EventArgs e)
UpdateConfiguration("Text", String.Empty);
boxDefaultText.Text = String.Empty;
}

private void txtDefaultSizeLimit_TextChanged(object sender, EventArgs e)
{
UpdateConfiguration("SizeLimit", txtDefaultSizeLimit.Text);
}
}
}
7 changes: 2 additions & 5 deletions MainForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@
<metadata name="groupBox1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="groupBox2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="tableMain.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
Expand Down Expand Up @@ -219,7 +216,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAM
cwAAAk1TRnQBSQFMAgEBDAEAAQgBBQEIAQUBZAEAAWQBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
cwAAAk1TRnQBSQFMAgEBDAEAARgBBQEYAQUBZAEAAWQBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABkAEBAgABkAEBAgABAQEAAQgGAAFxAQIXAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEA
AcAB3AHAAQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEA
A0IBAAM5AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIA
Expand Down Expand Up @@ -970,7 +967,7 @@
<metadata name="labelEncodingArguments.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="groupBox1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="groupBox2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="statusStrip.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
Expand Down
Binary file added NewUpdate/3.40.3.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion NewUpdate/latest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.40.2
3.40.3
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.40.2")]
[assembly: AssemblyVersion("3.40.3")]
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ Drag and drop two or more video files inside the application, select what do you

## Changelog

#### Version 3.40.3
* Now you can set size limit default, find it in *General* tab [request](https://github.com/argorar/WebMConverter/issues/88)

#### Version 3.40.2
* Fix for ffmpeg/ffprobe long paths not working by @DoTheSneedful

Expand Down

0 comments on commit a128757

Please sign in to comment.