debug_server: Remove the "Write core file" button.

It is very, very rarely used, and is extremely wide on some locales
(i.e. almost 2x the width of the other buttons combined), making it
appear out of place. Now that it can be done from Debugger, having
it here does not seem to make a lot of sense.

As requested and discussed in #14777.
This commit is contained in:
Augustin Cavalier 2019-05-02 16:59:39 -04:00
parent 5ef0649658
commit 02079c66f3

View File

@ -39,8 +39,8 @@
enum {
kActionKillTeam,
kActionDebugTeam,
kActionWriteCoreFile,
kActionSaveReportTeam,
kActionWriteCoreFile,
kActionPromptUser
};
@ -903,10 +903,10 @@ TeamDebugHandler::_HandleMessage(DebugMessage *message)
// if someone else kills our teams.
BAlert *alert = new BAlert(NULL, buffer.String(),
B_TRANSLATE("Terminate"), B_TRANSLATE("Debug"),
B_TRANSLATE("Write core file"),
HANDOVER_USE_DEBUGGER ? B_TRANSLATE("Save report") : NULL,
B_WIDTH_AS_USUAL, B_WARNING_ALERT);
#ifdef HANDOVER_USE_DEBUGGER
alert->AddButton(B_TRANSLATE("Save report"));
#if 0
alert->AddButton(B_TRANSLATE("Write core file"));
#endif
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
debugAction = alert->Go();