Add option to disable media info click

This commit is contained in:
Nikolaj Olsson 2024-02-26 15:59:53 +01:00
parent b77e613f6f
commit 2093f2e3f0
2 changed files with 9 additions and 1 deletions

View File

@ -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));

View File

@ -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;
}