fix: MacOS Hide and Show from dock on window close / hide
This commit is contained in:
parent
9c3e08001e
commit
ca5f41684f
1 changed files with 2 additions and 0 deletions
|
|
@ -110,11 +110,13 @@ bool isOSXInterfaceStyleDark()
|
|||
void forceAppActive()
|
||||
{
|
||||
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
||||
[[NSApplication sharedApplication] setActivationPolicy:NSApplicationActivationPolicyRegular];
|
||||
}
|
||||
|
||||
void macOSNativeHide()
|
||||
{
|
||||
[NSApp hide:nil];
|
||||
[[NSApplication sharedApplication] setActivationPolicy:NSApplicationActivationPolicyAccessory];
|
||||
}
|
||||
|
||||
IconsTheme getOSXIconsTheme()
|
||||
|
|
|
|||
Loading…
Reference in a new issue