Skip to content

qml: allow renaming wallets#10573

Merged
ecdsa merged 1 commit intospesmilo:masterfrom
f321x:qml_wallet_rename
Apr 22, 2026
Merged

qml: allow renaming wallets#10573
ecdsa merged 1 commit intospesmilo:masterfrom
f321x:qml_wallet_rename

Conversation

@f321x
Copy link
Copy Markdown
Member

@f321x f321x commented Apr 8, 2026

Allows to rename a wallet file from the QML Wallet Details view. This seems like a feature we should support as the use-case of a wallet can change or maybe the user didn't think about a proper name when setting up the wallet. Especially with lightning channels it is not possible to restore from seed to change the name.
Fixes #4377

Alternatively it could also be made a button in the bottom row, but we already have 4 potential buttons there, i think this looks cleaner.

Screencast_20260408_103904.webm

Allows to rename a wallet file from the QML Wallet Details view.
This seems like a feature we should support as the use-case of a wallet can
change or maybe the user didn't think about a proper name when setting
up the wallet. Especially with lightning channels it is not possible to
restore from seed to change the name.

Fixes spesmilo#4377
@f321x f321x added the gui-qml label Apr 8, 2026
@ecdsa ecdsa merged commit bca41d9 into spesmilo:master Apr 22, 2026
17 checks passed
Comment on lines +315 to +323
def isValidWalletName(self, wallet_name: str) -> bool:
if not wallet_name:
return False
if self.availableWallets.wallet_name_exists(wallet_name):
return False
# ensure wallet_name is not interpreted as path
if os.path.basename(wallet_name) != wallet_name: # '/foo/bar/' returns 'bar'
return False
return True
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could this be deduped with

def isValidNewWalletName(self, wallet_name: str) -> bool:
?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #10604

@f321x f321x deleted the qml_wallet_rename branch April 23, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to rename wallet

3 participants