mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Migrate to private class properties/methods
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user