mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Bitcoin-Qt: add testnet check and icon to intro dialog
This commit is contained in:
@@ -142,7 +142,7 @@ QString Intro::getDefaultDataDirectory()
|
||||
return QString::fromStdString(GetDefaultDataDir().string());
|
||||
}
|
||||
|
||||
void Intro::pickDataDirectory()
|
||||
void Intro::pickDataDirectory(bool fIsTestnet)
|
||||
{
|
||||
namespace fs = boost::filesystem;;
|
||||
QSettings settings;
|
||||
@@ -160,6 +160,11 @@ void Intro::pickDataDirectory()
|
||||
/* If current default data directory does not exist, let the user choose one */
|
||||
Intro intro;
|
||||
intro.setDataDirectory(dataDir);
|
||||
if (!fIsTestnet)
|
||||
intro.setWindowIcon(QIcon(":icons/bitcoin"));
|
||||
else
|
||||
intro.setWindowIcon(QIcon(":icons/bitcoin_testnet"));
|
||||
|
||||
while(true)
|
||||
{
|
||||
if(!intro.exec())
|
||||
|
||||
Reference in New Issue
Block a user