Set the m_isShown flag appopriately

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-09-02 12:54:34 +00:00
parent 5d9d22fe08
commit cbb2499e71

View File

@@ -187,6 +187,8 @@ void wxTopLevelWindowCocoa::Restore()
bool wxTopLevelWindowCocoa::Show(bool show) bool wxTopLevelWindowCocoa::Show(bool show)
{ {
if(m_isShown == show)
return false;
wxAutoNSAutoreleasePool pool; wxAutoNSAutoreleasePool pool;
if(show) if(show)
{ {
@@ -201,6 +203,7 @@ bool wxTopLevelWindowCocoa::Show(bool show)
} }
else else
[m_cocoaNSWindow orderOut:m_cocoaNSWindow]; [m_cocoaNSWindow orderOut:m_cocoaNSWindow];
m_isShown = show;
return true; return true;
} }