Fixed nullable issues

This commit is contained in:
Thorsten Sommer 2022-10-30 16:24:22 +01:00
parent c77bf8bd96
commit 274d3641eb
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -22,6 +22,9 @@ public sealed partial class Translation : UserControl
{
this.InitializeComponent();
this.Dock = DockStyle.Top;
this.saveTimer = new Timer();
this.translationTimer = new Timer();
}
public Translation(AppSettings.CultureInfo cultureInfo)
@ -121,7 +124,7 @@ public sealed partial class Translation : UserControl
}
}
private async void SaveChanges(object? sender, ElapsedEventArgs e)
private async void SaveChanges(object? sender, ElapsedEventArgs? e)
{
if (this.currentTranslationId > -1)
{
@ -135,7 +138,7 @@ public sealed partial class Translation : UserControl
this.isManualOnlyMode = this.checkBoxManual.Checked;
}
private async void TriggerTranslateNow(object? sender, ElapsedEventArgs e)
private async void TriggerTranslateNow(object? sender, ElapsedEventArgs? e)
{
if (this.currentTranslationId < 0 || this.isDeepLSourceCulture == false)
return;