mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
gui: Consolidate wallet display name to GUIUtil function
Instead of having the code for the wallet display name being copy and pasted, use a GUIUtil function to get that for us.
This commit is contained in:
parent
28fc562f26
commit
bfba63880f
5 changed files with 15 additions and 4 deletions
|
|
@ -343,7 +343,7 @@ void OpenWalletActivity::finish()
|
|||
|
||||
void OpenWalletActivity::open(const std::string& path)
|
||||
{
|
||||
QString name = path.empty() ? QString("["+tr("default wallet")+"]") : QString::fromStdString(path);
|
||||
QString name = GUIUtil::WalletDisplayName(path);
|
||||
|
||||
showProgressDialog(
|
||||
//: Title of window indicating the progress of opening of a wallet.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue