Migrate to private class properties/methods
This commit is contained in:
parent
7dbe57084b
commit
aa9f53df57
100 changed files with 3795 additions and 3944 deletions
|
@ -17,20 +17,20 @@ export class PreventDisplaySleepService {
|
|||
);
|
||||
|
||||
if (isEnabled) {
|
||||
this.enable();
|
||||
this.#enable();
|
||||
} else {
|
||||
this.disable();
|
||||
this.#disable();
|
||||
}
|
||||
}
|
||||
|
||||
private enable(): void {
|
||||
#enable(): void {
|
||||
if (this.blockerId !== undefined) {
|
||||
return;
|
||||
}
|
||||
this.blockerId = this.powerSaveBlocker.start('prevent-display-sleep');
|
||||
}
|
||||
|
||||
private disable(): void {
|
||||
#disable(): void {
|
||||
if (this.blockerId === undefined) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue