From e589d859ae06d92aeabd98965e9ffd7256e86ca2 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 23 Feb 2023 21:26:56 +0100 Subject: [PATCH] qml: reset position in history to top when loading another wallet --- electrum/gui/qml/components/History.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/electrum/gui/qml/components/History.qml b/electrum/gui/qml/components/History.qml index e47345666..f989480df 100644 --- a/electrum/gui/qml/components/History.qml +++ b/electrum/gui/qml/components/History.qml @@ -143,4 +143,11 @@ Pane { Daemon.currentWallet.historyModel.updateBlockchainHeight(height) } } + + Connections { + target: Daemon + function onWalletLoaded() { + listview.positionViewAtBeginning() + } + } }