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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user