Minor UI stuff

This commit is contained in:
niksedk 2023-02-08 20:14:58 +01:00
parent befb5f03ad
commit fe37dfb265
2 changed files with 5 additions and 7 deletions

View File

@ -51,16 +51,16 @@
this.labelPleaseWait.TabIndex = 28;
this.labelPleaseWait.Text = "Please wait...";
//
// labelAVX2
// labelWhisperChoice
//
this.labelWhisperChoice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.labelWhisperChoice.AutoSize = true;
this.labelWhisperChoice.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.labelWhisperChoice.Location = new System.Drawing.Point(274, 9);
this.labelWhisperChoice.Name = "labelWhisperChoice";
this.labelWhisperChoice.Size = new System.Drawing.Size(34, 13);
this.labelWhisperChoice.Size = new System.Drawing.Size(28, 13);
this.labelWhisperChoice.TabIndex = 30;
this.labelWhisperChoice.Text = "AVX2";
this.labelWhisperChoice.Text = "CPP";
//
// WhisperDownload
//

View File

@ -60,14 +60,12 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
labelDescription1.Text = LanguageSettings.Current.GetTesseractDictionaries.Download + " whisper.cpp";
_cancellationTokenSource = new CancellationTokenSource();
_whisperChoice = whisperChoice;
labelWhisperChoice.Text = _whisperChoice;
labelWhisperChoice.Left = Width - labelWhisperChoice.Width - 20;
}
private void WhisperDownload_Shown(object sender, EventArgs e)
{
labelWhisperChoice.Visible = true;
labelWhisperChoice.Text = _whisperChoice;
labelWhisperChoice.Left = Width - labelWhisperChoice.Width - 20;
var downloadUrl = IntPtr.Size * 8 == 32 ? DownloadUrl32Cpp : DownloadUrl64Cpp;
if (_whisperChoice == WhisperChoice.ConstMe)
{