Skip to content

Commit

Permalink
Merge branch 'debug'
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjbauer committed Nov 9, 2023
2 parents 87dada4 + 3858fe8 commit 9e33f78
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Photino.Native/Photino.Mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
[_webviewConfiguration release];
[_webview release];
[_window performClose: _window];
//[NSApp release];
[NSApp release];
}

void Photino::Center()
Expand Down Expand Up @@ -748,13 +748,7 @@ void EnsureInvoke(dispatch_block_t block)

void Photino::WaitForExit()
{
while ([NSApp runModalSession:[NSApp beginModalSessionForWindow:_window]] == NSModalResponseContinue)
{
// The window is still open, so keep running the event loop
}

// The window has been closed, so stop the event loop
[NSApp stopModal];
[NSApp run];
}

//Callbacks
Expand Down

0 comments on commit 9e33f78

Please sign in to comment.