Skip to content

Commit 7357893

Browse files
committed
Prioritize and display -testsafemode status in UI
Like in a real world situation, a safe mode test should also be visible in the UI. A test of safe mode is furthermore mostly relevant for developers, so it should not be overwritten by a warning about a pre-release test build.
1 parent cbf28c6 commit 7357893

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3221,12 +3221,12 @@ string GetWarnings(string strFor)
32213221
string strStatusBar;
32223222
string strRPC;
32233223

3224-
if (GetBoolArg("-testsafemode", false))
3225-
strRPC = "test";
3226-
32273224
if (!CLIENT_VERSION_IS_RELEASE)
32283225
strStatusBar = _("This is a pre-release test build - use at your own risk - do not use for mining or merchant applications");
32293226

3227+
if (GetBoolArg("-testsafemode", false))
3228+
strStatusBar = strRPC = "testsafemode enabled";
3229+
32303230
// Misc warnings like out of disk space and clock is wrong
32313231
if (strMiscWarning != "")
32323232
{

0 commit comments

Comments
 (0)