Skip to content

Commit

Permalink
Deprecate batteryData
Browse files Browse the repository at this point in the history
  • Loading branch information
JezerM committed Mar 8, 2022
1 parent fcad523 commit e7db76e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion ts/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export class Greeter {
/**
* The username of the user being authenticated or "null"
* if no authentication is in progress
* @type {string|Null}
* @type {string|null}
* @readonly
*/
get authentication_user(): string | null {
Expand Down Expand Up @@ -237,11 +237,21 @@ export class Greeter {
* Gets the battery data.
* @type {LightDMBattery}
* @readonly
* @deprecated Use `battery_data`
*/
get batteryData(): LightDMBattery {
return ipcRenderer.sendSync("lightdm", "batteryData");
}

/**
* Gets the battery data.
* @type {LightDMBattery}
* @readonly
*/
get battery_data(): LightDMBattery {
return ipcRenderer.sendSync("lightdm", "battery_data");
}

/**
* Gets the brightness
*/
Expand Down

0 comments on commit e7db76e

Please sign in to comment.