feat: add app.isHidden API for macOS (#32155)
* feat: add app.isHidden API * Update docs/api/app.md Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com> * fixed isHidden tests * Update docs/api/app.md Co-authored-by: John Kleinschmidt <jkleinsc@github.com> * Update spec-main/api-app-spec.ts Co-authored-by: John Kleinschmidt <jkleinsc@github.com> Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com> Co-authored-by: John Kleinschmidt <jkleinsc@github.com>
This commit is contained in:
parent
9c3b159b95
commit
a9296229c8
5 changed files with 28 additions and 1 deletions
|
@ -117,6 +117,10 @@ void Browser::Hide() {
|
|||
[[AtomApplication sharedApplication] hide:nil];
|
||||
}
|
||||
|
||||
bool Browser::IsHidden() {
|
||||
return [[AtomApplication sharedApplication] isHidden];
|
||||
}
|
||||
|
||||
void Browser::Show() {
|
||||
[[AtomApplication sharedApplication] unhide:nil];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue