diff --git a/src/libse/Common/Settings.cs b/src/libse/Common/Settings.cs index 494a61d36..01255521e 100644 --- a/src/libse/Common/Settings.cs +++ b/src/libse/Common/Settings.cs @@ -177,6 +177,7 @@ namespace Nikse.SubtitleEdit.Core.Common public string ChatGptApiKey { get; set; } public int ChatGptDelaySeconds { get; set; } public string GeminiProApiKey { get; set; } + public bool DisableVidoInfoViaLabel { get; set; } public bool ListViewSyntaxColorDurationSmall { get; set; } public bool ListViewSyntaxColorDurationBig { get; set; } public bool ListViewSyntaxColorOverlap { get; set; } @@ -5343,6 +5344,12 @@ $HorzAlign = Center settings.Tools.TranslateViaCopyPasteAutoCopyToClipboard = Convert.ToBoolean(subNode.InnerText, CultureInfo.InvariantCulture); } + subNode = node.SelectSingleNode("DisableVidoInfoViaLabel"); + if (subNode != null) + { + settings.Tools.DisableVidoInfoViaLabel = Convert.ToBoolean(subNode.InnerText, CultureInfo.InvariantCulture); + } + subNode = node.SelectSingleNode("ListViewSyntaxColorDurationSmall"); if (subNode != null) { @@ -11789,6 +11796,7 @@ $HorzAlign = Center textWriter.WriteElementString("ChatGptApiKey", settings.Tools.ChatGptApiKey); textWriter.WriteElementString("ChatGptDelaySeconds", settings.Tools.ChatGptDelaySeconds.ToString(CultureInfo.InvariantCulture)); textWriter.WriteElementString("GeminiProApiKey", settings.Tools.GeminiProApiKey); + textWriter.WriteElementString("DisableVidoInfoViaLabel", settings.Tools.DisableVidoInfoViaLabel.ToString(CultureInfo.InvariantCulture)); textWriter.WriteElementString("ListViewSyntaxColorDurationSmall", settings.Tools.ListViewSyntaxColorDurationSmall.ToString(CultureInfo.InvariantCulture)); textWriter.WriteElementString("ListViewSyntaxColorDurationBig", settings.Tools.ListViewSyntaxColorDurationBig.ToString(CultureInfo.InvariantCulture)); textWriter.WriteElementString("ListViewSyntaxColorLongLines", settings.Tools.ListViewSyntaxColorLongLines.ToString(CultureInfo.InvariantCulture)); diff --git a/src/ui/Forms/Main.cs b/src/ui/Forms/Main.cs index 7a17798b3..5fa7bee02 100644 --- a/src/ui/Forms/Main.cs +++ b/src/ui/Forms/Main.cs @@ -36487,7 +36487,7 @@ namespace Nikse.SubtitleEdit.Forms private void labelVideoInfo_Click(object sender, EventArgs e) { - if (string.IsNullOrEmpty(_videoFileName) || _videoInfo == null) + if (string.IsNullOrEmpty(_videoFileName) || _videoInfo == null || Configuration.Settings.Tools.DisableVidoInfoViaLabel) { return; }