bindings from macos
This commit is contained in:
parent
dfd445d422
commit
6ad588cba0
1 changed files with 4 additions and 2 deletions
|
|
@ -732,8 +732,10 @@ async updateRecordingRetentionPeriod(period: string) : Promise<Result<null, stri
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Stub implementation for non-macOS platforms
|
* Checks if the Mac is a laptop by detecting battery presence
|
||||||
* Always returns false since laptop detection is macOS-specific
|
*
|
||||||
|
* This uses pmset to check for battery information.
|
||||||
|
* Returns true if a battery is detected (laptop), false otherwise (desktop)
|
||||||
*/
|
*/
|
||||||
async isLaptop() : Promise<Result<boolean, string>> {
|
async isLaptop() : Promise<Result<boolean, string>> {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue