Skip to content

Commit

Permalink
Merge pull request #225 from Zondax/fix-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala authored Apr 21, 2023
2 parents 1207f8a + 516072e commit ec70fed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/buttons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ const navRightButton: IButton = {
};

const navLeftButton: IButton = {
x: 100,
x: 140,
y: 625,
delay: 0.25,
};

const quitSettingsButton: IButton = {
x: 50,
y: 625,
delay: 0.25,
};
Expand Down Expand Up @@ -131,6 +137,7 @@ export const TouchElements = new Map<ButtonKind, IButton>([

[ButtonKind.NavRightButton, navRightButton],
[ButtonKind.NavLeftButton, navLeftButton],
[ButtonKind.QuitSettingsButton, quitSettingsButton],

[ButtonKind.ApproveHoldButton, approveHoldButton],
[ButtonKind.ApproveTapButton, approveTapButton],
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const enum ButtonKind {

NavRightButton,
NavLeftButton,
QuitSettingsButton,

ApproveHoldButton,
ApproveTapButton,
Expand Down
2 changes: 1 addition & 1 deletion src/zondax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function zondaxMainmenuNavigation(model: TModel, clickArray?: number[]):
ButtonKind.NavRightButton,
ButtonKind.ToggleSettingButton1,
ButtonKind.ToggleSettingButton1,
ButtonKind.PrevPageButton,
ButtonKind.QuitSettingsButton,
]);
}
const DEFAULT_MAINMENU_CLICKS = [1, 0, 0, 4, -5];
Expand Down

0 comments on commit ec70fed

Please sign in to comment.