Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphiiko committed Mar 17, 2024
1 parent b972a08 commit 290884e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src-elevated-sidecar/Cargo.lock

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

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export class BrightnessControlModalComponent
driverAvailable = false;
driverChecked = false;

protected readonly destroy$ = new Subject<void>();
protected readonly setHardwareBrightness = new Subject<number>();
protected readonly setSoftwareBrightness = new Subject<number>();
protected readonly setSimpleBrightness = new Subject<number>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,10 @@ import { fadeUp, vshrink } from '../../utils/animations';
import { BaseModalComponent } from '../base-modal/base-modal.component';
import { ModalOptions } from '../../services/modal.service';
import { AutomationConfigService } from '../../services/automation-config.service';
import {
asyncScheduler,
combineLatest,
distinctUntilChanged,
map,
Subject,
switchMap,
tap,
throttleTime,
} from 'rxjs';
import { asyncScheduler, map, Subject, switchMap, tap, throttleTime } from 'rxjs';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { Router } from '@angular/router';
import { BigscreenBeyondFanAutomationService } from '../../services/hmd-specific-automations/bigscreen-beyond-fan-automation.service';
import { HardwareBrightnessControlService } from '../../services/brightness-control/hardware-brightness-control.service';
import { AppSettingsService } from 'src-ui/app/services/app-settings.service';

@Component({
selector: 'app-bsb-fan-speed-control-modal',
Expand All @@ -31,20 +20,15 @@ export class BSBFanSpeedControlModalComponent
{
fanSpeedBounds = [40, 100];

protected readonly destroy$ = new Subject<void>();
protected readonly setFanSpeed = new Subject<number>();

constructor(
protected fanControl: BigscreenBeyondFanAutomationService,
protected router: Router,
public automationConfigService: AutomationConfigService,
private destroyRef: DestroyRef,
private appSettingsService: AppSettingsService
private destroyRef: DestroyRef
) {
super();
}

ngOnInit(): void {
this.automationConfigService.configs
.pipe(
takeUntilDestroyed(this.destroyRef),
Expand All @@ -61,6 +45,8 @@ export class BSBFanSpeedControlModalComponent
.subscribe();
}

ngOnInit(): void {}

override getOptionsOverride(): Partial<ModalOptions> {
return {
wrapperDefaultClass: 'modal-wrapper-brightness-control',
Expand Down

0 comments on commit 290884e

Please sign in to comment.