Remove navigation items on hardware button pages

This commit is contained in:
britzelpuf
2022-04-11 22:37:36 +02:00
committed by GitHub
parent edd6f3fd4a
commit a9deed723e

View File

@@ -200,7 +200,12 @@ function HandleHardwareButton(method: string): void {
else {
return;
}
// Set pageId to -1, because of the navigation arrows
let tempPageId = pageId;
pageId = -1;
GeneratePage(page);
pageId = tempPageId;
}
function HandleStartupProcess(): void {
@@ -560,6 +565,8 @@ function GetNavigationString(pageId: number): string {
return "0|1";
case config.pages.length - 1:
return "1|0";
case -1:
return "0|0";
default:
return "1|1";
}