fix(mac-utils): fix app not going on the foreground
This commit is contained in:
parent
4ee1215fbc
commit
b897ac4421
|
@ -81,6 +81,8 @@ int32_t mac_utils_prompt_accessibility() {
|
|||
void mac_utils_transition_to_foreground_app() {
|
||||
ProcessSerialNumber psn = { 0, kCurrentProcess };
|
||||
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
|
||||
|
||||
[[NSApplication sharedApplication] activateIgnoringOtherApps : YES];
|
||||
}
|
||||
|
||||
void mac_utils_transition_to_background_app() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user