mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-24 06:30:10 +01:00
Merge bitcoin/bitcoin#34276: Remove empty caption from user interface (noui, gui)
fad7bd9ba3noui: Remove always empty caption while formatting (MarcoFalke)fa8ebeb332refactor: [gui] Document that the title is always empty for node message (MarcoFalke)fafe71b743refactor: Remove empty caption from ThreadSafeMessageBox (MarcoFalke)fa8d0088e7refactor: Remove empty caption from ThreadSafeQuestion (MarcoFalke)fa0195499crefactor: [gui] Use lambdas over std::bind (MarcoFalke)eeee1e341frefactor: Remove trailing semicolon after ADD_SIGNALS_DECL_WRAPPER (MarcoFalke) Pull request description: Currently, the user interface (noui, gui) has a caption for each message. However, the caption has many issues: * It is always hard-coded to the empty string. * This is confusing and tedious when reading or maintaining the code. * It is redundant, because `noui` will ignore the caption and set the logging prefix (error, warning, info) based on the `style`. * The gui does prefer to set the title based on the caption, but since it the caption is always empty, the fallback will always be used. Fix all issues by removing it. ACKs for top commit: hebasto: ACKfad7bd9ba3, I have reviewed the code and it looks OK. Tested on Ubuntu 25.10. sedited: ACKfad7bd9ba3Tree-SHA512: 58ef538b9b3e1cfdcf2955f6de9b8cee335edbf6339723cb693cb4d584817904c962dac5199ee44d7e2860a5332dec1a6abf47e621eb5cf919aa1cdae271b55f
This commit is contained in:
@@ -1377,7 +1377,7 @@ static ChainstateLoadResult InitAndLoadChainstate(
|
||||
options.coins_error_cb = [] {
|
||||
uiInterface.ThreadSafeMessageBox(
|
||||
_("Error reading from database, shutting down."),
|
||||
"", CClientUIInterface::MSG_ERROR);
|
||||
CClientUIInterface::MSG_ERROR);
|
||||
};
|
||||
uiInterface.InitMessage(_("Loading block index…"));
|
||||
auto catch_exceptions = [](auto&& f) -> ChainstateLoadResult {
|
||||
@@ -1819,7 +1819,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
||||
uiInterface.ThreadSafeQuestion(
|
||||
error + Untranslated(".\n\n") + _("Do you want to rebuild the databases now?"),
|
||||
error.original + ".\nPlease restart with -reindex or -reindex-chainstate to recover.",
|
||||
"", CClientUIInterface::MSG_ERROR | CClientUIInterface::BTN_ABORT)};
|
||||
CClientUIInterface::MSG_ERROR | CClientUIInterface::BTN_ABORT)};
|
||||
if (!do_retry) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user