Added an event for a changed translation
This commit is contained in:
2 files changed
+15
-2
No files matched your search
@@ -124,8 +124,11 @@ public sealed partial class Translation : UserControl
|
||||
private async void SaveChanges(object? sender, ElapsedEventArgs e)
|
||||
{
|
||||
if (this.currentTranslationId > -1)
|
||||
await TranslationProcessor.SaveChangedTranslation(this.currentTranslationId, this.textBox.Text, this.checkBoxManual.Checked);
|
||||
|
||||
{
|
||||
var storedTranslation = await TranslationProcessor.SaveChangedTranslation(this.currentTranslationId, this.textBox.Text, this.checkBoxManual.Checked);
|
||||
AppEvents.TranslationChanged(storedTranslation.Result);
|
||||
}
|
||||
|
||||
if(this.ParentForm is UI_WinForms.Main main)
|
||||
main.RemoveDeferredSaveOperation(this.currentTranslationId);
|
||||
|
||||
|
||||
Reference in new issue
Block a user