mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
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:
@@ -606,6 +606,10 @@ You should seek to use the `steal` option as sparingly as possible.
|
||||
|
||||
Hides all application windows without minimizing them.
|
||||
|
||||
### `app.isHidden()` _macOS_
|
||||
|
||||
Returns `boolean` - `true` if the application—including all of its windows—is hidden (e.g. with `Command-H`), `false` otherwise.
|
||||
|
||||
### `app.show()` _macOS_
|
||||
|
||||
Shows application windows after they were hidden. Does not automatically focus
|
||||
|
||||
Reference in New Issue
Block a user