From 9cc4069acaa132ea8e6e65e4a7710d75a01fee8a Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Thu, 19 Mar 2026 13:55:22 +0100 Subject: [PATCH] Back button works correctly with restore software --- web/public/js/app.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/web/public/js/app.js b/web/public/js/app.js index c809f3d..807d0e9 100644 --- a/web/public/js/app.js +++ b/web/public/js/app.js @@ -677,7 +677,15 @@ } btnBuildBack.addEventListener('click', () => { - goToPatches(); + if (isRestore) { + // Restore was triggered directly from the device step + isRestore = false; + setNavLabels(NAV_DEFAULT); + setNavStep(1); + showStep(stepDevice); + } else { + goToPatches(); + } }); const buildProgress = $('build-progress');