mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-05 05:46:44 +00:00
ensure wallet tab name and wallet name are synced on wallet open
This commit is contained in:
parent
bcd2c966a5
commit
a444e2af2f
1 changed files with 3 additions and 0 deletions
|
@ -1046,6 +1046,9 @@ public class AppController implements Initializable {
|
||||||
if(name.endsWith(".json")) {
|
if(name.endsWith(".json")) {
|
||||||
name = name.substring(0, name.lastIndexOf('.'));
|
name = name.substring(0, name.lastIndexOf('.'));
|
||||||
}
|
}
|
||||||
|
if(!name.equals(wallet.getName())) {
|
||||||
|
wallet.setName(name);
|
||||||
|
}
|
||||||
Tab tab = new Tab(name);
|
Tab tab = new Tab(name);
|
||||||
tab.setContextMenu(getTabContextMenu(tab));
|
tab.setContextMenu(getTabContextMenu(tab));
|
||||||
tab.setClosable(true);
|
tab.setClosable(true);
|
||||||
|
|
Loading…
Reference in a new issue