some editors want to be notified when they are saved (e.g. for undo/redo stuff)

This commit is contained in:
Michael Becker 2019-12-16 07:58:43 -05:00
parent c3a1516811
commit 47ac9d52ad
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -884,6 +884,9 @@ namespace UniversalEditor.UserInterface
Pages.EditorPage currentEditorPage = GetCurrentEditorPage();
if (currentEditorPage != null)
{
if (!GetCurrentEditor().NotifySaving())
return;
SaveFile(currentEditorPage.Document);
}
}