Fix for new window is opened when Single window is selected in preferences

This commit is contained in:
Ravi Ranjan 2019-10-16 12:09:25 +01:00
parent 75bdea0a97
commit 58b069cadd
1 changed files with 4 additions and 1 deletions

View File

@ -716,7 +716,10 @@ namespace OpenLiveWriter.PostEditor
// as well as the contents of the property tray changing.
if (currentPostIsEmptyAndUnsaved && isNewPost && !editingContext.BlogPost.IsPage)
{
PostEditorForm.Launch(editingContext);
if (PostEditorSettings.PostWindowBehavior == PostWindowBehavior.UseSameWindow)
EditPostWithPostCloseEvent(editingContext);
else
PostEditorForm.Launch(editingContext);
return;
}