Skip to content

Commit

Permalink
when big larry came 'round just to put him down
Browse files Browse the repository at this point in the history
  • Loading branch information
murrty authored Dec 18, 2021
1 parent a54a903 commit d6aa379
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion youtube-dl-gui/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@
<value>True</value>
</setting>
<setting name="BetaVersion" serializeAs="String">
<value>2.27-pre2</value>
<value>2.27-pre3</value>
</setting>
</youtube_dl_gui.Properties.Settings>
</applicationSettings>
Expand Down
16 changes: 6 additions & 10 deletions youtube-dl-gui/Classes/ErrorLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,11 @@ class ErrorLog {
public static void AssembleComputerVersionInformation() {
ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem");
ManagementObject info = searcher.Get().Cast<ManagementObject>().FirstOrDefault();
ComputerVersionInformation = string.Format(
"Version: {0}, Service Pack Major: {1}, Service Pack Minor: {2}, Caption: {3}",
new object[] {
info.Properties["Version"].Value.ToString(),
info.Properties["ServicePackMajorVersion"].Value.ToString(),
info.Properties["ServicePackMinorVersion"].Value.ToString(),
info.Properties["Caption"].Value.ToString()
}
);
ComputerVersionInformation =
$"Version: {info.Properties["Version"].Value} " +
$"Service Pack Major: {info.Properties["ServicePackMajorVersion"].Value} " +
$"Service Pack Minor: {info.Properties["ServicePackMinorVersion"].Value} " +
$"System Caption: {info.Properties["Caption"].Value}";
}

/// <summary>
Expand Down Expand Up @@ -496,7 +492,7 @@ public static DialogResult Report (ApiParsingException ReceivedException) {
private static void WriteToFile(string LogData) {
if (Config.Settings.Errors.logErrors && !Program.IsDebug) {
try {
string FileName = string.Format("\\error_{0}.log", DateTime.Now);
string FileName = $"\\error_{DateTime.Now}.log";
System.IO.File.WriteAllText(FileName, LogData);
}
catch (Exception ex) { Report(ex, true); }
Expand Down
2 changes: 1 addition & 1 deletion youtube-dl-gui/Classes/NativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class NativeMethods {
public static extern int SetWindowTheme(IntPtr hwnd, string pszSubAppName, string pszSubIdList);
#endregion

#region SplitButton, ExtendedTextBox
#region SplitButton, ExtendedTextBox, ExtendedRichTextBox

#region TextBox Text Margins
public const int EM_SETMARGINS = 0xd3;
Expand Down
2 changes: 1 addition & 1 deletion youtube-dl-gui/Properties/Settings.Designer.cs

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

2 changes: 1 addition & 1 deletion youtube-dl-gui/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="BetaVersion" Type="System.String" Scope="Application">
<Value Profile="(Default)">2.27-pre2</Value>
<Value Profile="(Default)">2.27-pre3</Value>
</Setting>
<Setting Name="SkippedBetaVersion" Type="System.String" Scope="User">
<Value Profile="(Default)" />
Expand Down

0 comments on commit d6aa379

Please sign in to comment.