Let regtest have its own qt settings (#3286)

Also, avoid messing up testnet settings while playing in regtest
This commit is contained in:
UdjinM6 2020-01-14 23:18:15 +03:00 committed by Alexander Block
parent 1c885bbedf
commit b84482ac57
2 changed files with 2 additions and 1 deletions

View File

@ -36,5 +36,6 @@ static const int MAX_URI_LENGTH = 255;
#define QAPP_APP_NAME_DEFAULT "Dash-Qt"
#define QAPP_APP_NAME_TESTNET "Dash-Qt-testnet"
#define QAPP_APP_NAME_DEVNET "Dash-Qt-%s"
#define QAPP_APP_NAME_REGTEST "Dash-Qt-regtest"
#endif // BITCOIN_QT_GUICONSTANTS_H

View File

@ -23,7 +23,7 @@ static const struct {
{"main", QAPP_APP_NAME_DEFAULT, 0, 0, ""},
{"test", QAPP_APP_NAME_TESTNET, 190, 20, QT_TRANSLATE_NOOP("SplashScreen", "[testnet]")},
{"dev", QAPP_APP_NAME_DEVNET, 190, 20, "[devnet: %s]"},
{"regtest", QAPP_APP_NAME_TESTNET, 160, 30, "[regtest]"}
{"regtest", QAPP_APP_NAME_REGTEST, 160, 30, "[regtest]"}
};
static const unsigned network_styles_count = sizeof(network_styles)/sizeof(*network_styles);