mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-03 20:35:17 +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:
@@ -1008,4 +1008,13 @@ void ShowModalDialogAsynchronously(QDialog* dialog)
|
||||
dialog->show();
|
||||
}
|
||||
|
||||
QString WalletDisplayName(const QString& name)
|
||||
{
|
||||
return name.isEmpty() ? "[" + QObject::tr("default wallet") + "]" : name;
|
||||
}
|
||||
|
||||
QString WalletDisplayName(const std::string& name)
|
||||
{
|
||||
return WalletDisplayName(QString::fromStdString(name));
|
||||
}
|
||||
} // namespace GUIUtil
|
||||
|
||||
Reference in New Issue
Block a user