From edffbee92daf0b1b6072c582bd288e9c44c6b640 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 27 Mar 2023 12:03:46 +0200 Subject: [PATCH] qml: same for last --- electrum/gui/qml/components/wizard/Wizard.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qml/components/wizard/Wizard.qml b/electrum/gui/qml/components/wizard/Wizard.qml index add892484..80818c0db 100644 --- a/electrum/gui/qml/components/wizard/Wizard.qml +++ b/electrum/gui/qml/components/wizard/Wizard.qml @@ -66,10 +66,12 @@ ElDialog { if (page != pages.currentItem) return pages.pagevalid = page.valid - } ) + }) page.lastChanged.connect(function() { + if (page != pages.currentItem) + return pages.lastpage = page.last - } ) + }) page.next.connect(function() { var newview = wiz.submit(page.wizard_data) if (newview.view) { @@ -81,7 +83,6 @@ ElDialog { }) page.prev.connect(function() { var wdata = wiz.prev() - // console.log('prev view data: ' + JSON.stringify(wdata)) }) pages.pagevalid = page.valid