mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-08 19:01:08 +02:00
Merge #15085: gui: Fix incorrect application name when passing -regtest
cc341adbbb7584d3110a5151baf1ba4053aa2ed1 gui: Fix for Incorrect application name when passing -regtest (Ben Carman) Pull request description: Changes the application name to `Bitcoin-Qt-regtest` when instead of `Bitcoin-Qt-testnet` Fixes #15079 Tree-SHA512: 42ce3bea0bc3ff358708b9715f8d07c3a93e11fc4fe1a1425996ac70fd06ec8e5b186c5bbb254a7a189678ccbef3109174ca1f72c2c40c360927ec5da7315d8d
This commit is contained in:
commit
d3dc6d8794
@ -50,5 +50,6 @@ static const int MAX_URI_LENGTH = 255;
|
|||||||
#define QAPP_ORG_DOMAIN "bitcoin.org"
|
#define QAPP_ORG_DOMAIN "bitcoin.org"
|
||||||
#define QAPP_APP_NAME_DEFAULT "Bitcoin-Qt"
|
#define QAPP_APP_NAME_DEFAULT "Bitcoin-Qt"
|
||||||
#define QAPP_APP_NAME_TESTNET "Bitcoin-Qt-testnet"
|
#define QAPP_APP_NAME_TESTNET "Bitcoin-Qt-testnet"
|
||||||
|
#define QAPP_APP_NAME_REGTEST "Bitcoin-Qt-regtest"
|
||||||
|
|
||||||
#endif // BITCOIN_QT_GUICONSTANTS_H
|
#endif // BITCOIN_QT_GUICONSTANTS_H
|
||||||
|
@ -17,7 +17,7 @@ static const struct {
|
|||||||
} network_styles[] = {
|
} network_styles[] = {
|
||||||
{"main", QAPP_APP_NAME_DEFAULT, 0, 0, ""},
|
{"main", QAPP_APP_NAME_DEFAULT, 0, 0, ""},
|
||||||
{"test", QAPP_APP_NAME_TESTNET, 70, 30, QT_TRANSLATE_NOOP("SplashScreen", "[testnet]")},
|
{"test", QAPP_APP_NAME_TESTNET, 70, 30, QT_TRANSLATE_NOOP("SplashScreen", "[testnet]")},
|
||||||
{"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);
|
static const unsigned network_styles_count = sizeof(network_styles)/sizeof(*network_styles);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user