Fixed nullable issues
This commit is contained in:
parent
c77bf8bd96
commit
274d3641eb
@ -22,6 +22,9 @@ public sealed partial class Translation : UserControl
|
|||||||
{
|
{
|
||||||
this.InitializeComponent();
|
this.InitializeComponent();
|
||||||
this.Dock = DockStyle.Top;
|
this.Dock = DockStyle.Top;
|
||||||
|
|
||||||
|
this.saveTimer = new Timer();
|
||||||
|
this.translationTimer = new Timer();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Translation(AppSettings.CultureInfo cultureInfo)
|
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)
|
if (this.currentTranslationId > -1)
|
||||||
{
|
{
|
||||||
@ -135,7 +138,7 @@ public sealed partial class Translation : UserControl
|
|||||||
this.isManualOnlyMode = this.checkBoxManual.Checked;
|
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)
|
if (this.currentTranslationId < 0 || this.isDeepLSourceCulture == false)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user