From a444e2af2ffff263412a505bd0bcbf7ef3f07296 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 11 Nov 2020 16:31:58 +0200 Subject: [PATCH] ensure wallet tab name and wallet name are synced on wallet open --- src/main/java/com/sparrowwallet/sparrow/AppController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index f13f4fc6..1bcd501b 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppController.java @@ -1046,6 +1046,9 @@ public class AppController implements Initializable { if(name.endsWith(".json")) { name = name.substring(0, name.lastIndexOf('.')); } + if(!name.equals(wallet.getName())) { + wallet.setName(name); + } Tab tab = new Tab(name); tab.setContextMenu(getTabContextMenu(tab)); tab.setClosable(true);