When called from the ReadOnlyBootPrompt, quitting the Installer will result in

restarting. So it makes sense to use the label Restart for the button instead
of Quit.

Fixes #7090.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42239 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood 2011-06-18 22:55:53 +00:00
parent 80480954e2
commit d52b839e94

View File

@ -481,13 +481,12 @@ InstallerWindow::MessageReceived(BMessage *msg)
_SetCopyEngineCancelSemaphore(-1);
fBeginButton->SetLabel(B_TRANSLATE("Quit"));
PartitionMenuItem* dstItem
= (PartitionMenuItem*)fDestMenu->FindMarked();
char status[1024];
if (be_roster->IsRunning(kDeskbarSignature)) {
fBeginButton->SetLabel(B_TRANSLATE("Quit"));
snprintf(status, sizeof(status), B_TRANSLATE("Installation "
"completed. Boot sector has been written to '%s'. Press "
"Quit to leave the Installer or choose a new target "
@ -495,9 +494,10 @@ InstallerWindow::MessageReceived(BMessage *msg)
dstItem ? dstItem->Name() : B_TRANSLATE_COMMENT("???",
"Unknown partition name"));
} else {
fBeginButton->SetLabel(B_TRANSLATE("Restart"));
snprintf(status, sizeof(status), B_TRANSLATE("Installation "
"completed. Boot sector has been written to '%s'. Press "
"Quit to restart the computer or choose a new target "
"Restart to restart the computer or choose a new target "
"volume to perform another installation."),
dstItem ? dstItem->Name() : B_TRANSLATE_COMMENT("???",
"Unknown partition name"));