Merge pull request #875 from ranjanjharavi/fix-303-New-Window-Opened

New window is opened when Single window is selected in preferences
This commit is contained in:
Nick Vella 2019-10-19 18:15:51 +11:00 committed by GitHub
commit 743df72eed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}