-
Notifications
You must be signed in to change notification settings - Fork 313
about:version:help clean up add Bitcoin branding #140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,11 @@ static std::string FormatVersion(int nVersion) | |
return strprintf("%d.%d.%d", nVersion / 10000, (nVersion / 100) % 100, nVersion % 100); | ||
} | ||
|
||
std::string FormatVersion() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Returns a terse string for reusability. |
||
{ | ||
return BUILD_DESC "-" BUILD_GIT_COMMIT; | ||
} | ||
|
||
std::string FormatFullVersion() | ||
{ | ||
return CLIENT_BUILD; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -591,23 +591,28 @@ void SetupServerArgs(NodeContext& node) | |
argsman.AddHiddenArgs(hidden_args); | ||
} | ||
|
||
std::string VersionInfo() | ||
{ | ||
return FormatVersion();//from clientversion.cpp | ||
} | ||
|
||
std::string CopyrightInfo() | ||
{ | ||
return CopyrightHolders(strprintf(_("Copyright (C) %i-%i ").translated, 2009, COPYRIGHT_YEAR)); | ||
} | ||
|
||
std::string AboutMessageInfo() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The AboutMessageInfo() is simple and can be modified more easily in the future. |
||
{ | ||
const std::string SOURCE_CODE_URL = "<https://github.com/bitcoin/bitcoin>"; | ||
return strprintf(_("Please contribute if you find %s useful." "\n" | ||
"Visit %s for further information.").translated, PACKAGE_NAME, "<" PACKAGE_URL ">") + "\n" + | ||
strprintf(_("The source code is available at: %s").translated, SOURCE_CODE_URL); | ||
} | ||
|
||
std::string LicenseInfo() | ||
{ | ||
const std::string URL_SOURCE_CODE = "<https://github.com/bitcoin/bitcoin>"; | ||
|
||
return CopyrightHolders(strprintf(_("Copyright (C) %i-%i").translated, 2009, COPYRIGHT_YEAR) + " ") + "\n" + | ||
"\n" + | ||
strprintf(_("Please contribute if you find %s useful. " | ||
"Visit %s for further information about the software.").translated, | ||
PACKAGE_NAME, "<" PACKAGE_URL ">") + | ||
"\n" + | ||
strprintf(_("The source code is available from %s.").translated, | ||
URL_SOURCE_CODE) + | ||
"\n" + | ||
"\n" + | ||
_("This is experimental software.").translated + "\n" + | ||
strprintf(_("Distributed under the MIT software license, see the accompanying file %s or %s").translated, "COPYING", "<https://opensource.org/licenses/MIT>") + | ||
"\n"; | ||
const std::string LICENSE_URL = "<https://github.com/bitcoin/bitcoin/blob/master/COPYING>"; | ||
return strprintf(_("\nThis is experimental software.\nDistributed under the MIT software license:\n%s").translated, LICENSE_URL); | ||
} | ||
|
||
static bool fHaveGenesis = false; | ||
|
@@ -881,7 +886,7 @@ void InitLogging(const ArgsManager& args) | |
|
||
fLogIPs = args.GetBoolArg("-logips", DEFAULT_LOGIPS); | ||
|
||
std::string version_string = FormatFullVersion(); | ||
std::string version_string = FormatVersion(); | ||
#ifdef DEBUG | ||
version_string += " (debug build)"; | ||
#else | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -846,6 +846,7 @@ void BitcoinGUI::showDebugWindowActivateConsole() | |
void BitcoinGUI::showHelpMessageClicked() | ||
{ | ||
helpMessageDialog->show(); | ||
helpMessageDialog->raise();//bring to top if obscured | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the helpMessageDialog has already been presented - this change brings it to the front if the user re-clicks on the help menu item - otherwise it may remain obscured by any other windows. |
||
} | ||
|
||
#ifdef ENABLE_WALLET | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved conflict.