Skip to content

Commit

Permalink
Update template and other stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
neilenns committed Jan 18, 2025
1 parent be3c0e9 commit 063f762
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion com.neil-enns.vatis.sdPlugin/ui/atisLetter.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</sdpi-item>

<sdpi-item label="Flight rules">
<sdpi-select setting="ShowFlightRules" default="FAA">
<sdpi-select setting="showFlightRules" default="FAA">
<option value="NONE">None</option>
<option value="FAA">FAA</option>
<option value="ICAO">ICAO</option>
Expand Down
6 changes: 3 additions & 3 deletions src/actions/atisLetter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ export class AtisLetter extends SingletonAction<AtisLetterSettings> {
}

export enum FlightRuleDisplay {
NONE,
FAA,
ICAO,
NONE = "NONE",
FAA = "FAA",
ICAO = "ICAO",
}

export interface AtisLetterSettings {
Expand Down
1 change: 1 addition & 0 deletions src/controllers/atisLetter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ export class AtisLetterController extends BaseController {
this.altimeter = value.altimeter;
this.pressure = value.pressure;
this.calculateFaaFlightRules(value.ceiling, value.prevailingVisibility);
this.calculateIcaoFlightRules(value.ceiling, value.prevailingVisibility);
this.enableUpdates();

this.refreshDisplay();
Expand Down
3 changes: 2 additions & 1 deletion src/events/streamdeck/atisLetter/updateAtisLetterSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export const handleUpdateAtisLetterSettings = (

const requiresRefresh =
savedAction.settings.station !== settings.station ||
savedAction.settings.atisType !== settings.atisType;
savedAction.settings.atisType !== settings.atisType ||
savedAction.settings.showFlightRules !== settings.showFlightRules;

savedAction.settings = settings;

Expand Down

0 comments on commit 063f762

Please sign in to comment.