mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Remove unnecessary whitespace and dispose HttpClient
An unnecessary whitespace line was removed from the AutoTranslate.cs file to improve code readability. Additionally, the HttpClient in the AutoTranslate.Designer.cs file was disposed to free up system resources and prevent potential memory leaks. Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
This commit is contained in:
parent
1b6ec6d9f2
commit
be16964b95
2
src/ui/Forms/Translate/AutoTranslate.Designer.cs
generated
2
src/ui/Forms/Translate/AutoTranslate.Designer.cs
generated
@ -17,6 +17,8 @@
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
|
||||
_httpClient.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
|
@ -1455,7 +1455,6 @@ namespace Nikse.SubtitleEdit.Forms.Translate
|
||||
await DownloadOllamaModelsAsync();
|
||||
}
|
||||
|
||||
|
||||
private async Task DownloadOllamaModelsAsync()
|
||||
{
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user