mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 20:47:38 +00:00
Fixed the behaviour of menu in window when hide the app
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31859 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
90687109f7
commit
bf270ebcfb
3 changed files with 23 additions and 0 deletions
|
@ -1818,6 +1818,14 @@ many times.
|
|||
if (_f.is_main == YES)
|
||||
{
|
||||
_f.is_main = NO;
|
||||
|
||||
//We close the menu if the app will be hide
|
||||
if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", self) ==
|
||||
NSWindows95InterfaceStyle)
|
||||
{
|
||||
[[[self menu] attachedMenu] close];
|
||||
}
|
||||
|
||||
if (_f.is_key == YES)
|
||||
{
|
||||
[_wv setInputState: GSTitleBarKey];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue