ensure wallet tab name and wallet name are synced on wallet open

This commit is contained in:
Craig Raw 2020-11-11 16:31:58 +02:00
parent bcd2c966a5
commit a444e2af2f

View file

@ -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);