preferences/bluetooth: Rephrase 'services not running' dialog.
This commit is contained in:
parent
ef3761dd07
commit
9f95282c84
@ -28,20 +28,16 @@ void
|
|||||||
BluetoothApplication::ReadyToRun()
|
BluetoothApplication::ReadyToRun()
|
||||||
{
|
{
|
||||||
if (!be_roster->IsRunning(BLUETOOTH_SIGNATURE)) {
|
if (!be_roster->IsRunning(BLUETOOTH_SIGNATURE)) {
|
||||||
BAlert* alert = new BAlert("bluetooth_server not running",
|
BAlert* alert = new BAlert("Services not running",
|
||||||
B_TRANSLATE("bluetooth_server has not been found running on the "
|
B_TRANSLATE("The Bluetooth services are not currently running "
|
||||||
"system. Should be started, or stay offline"),
|
"on this system."),
|
||||||
B_TRANSLATE("Work offline"), B_TRANSLATE("Quit"),
|
B_TRANSLATE("Launch now"), B_TRANSLATE("Quit"), "",
|
||||||
B_TRANSLATE("Start please"), B_WIDTH_AS_USUAL,
|
B_WIDTH_AS_USUAL, B_WARNING_ALERT);
|
||||||
B_WARNING_ALERT);
|
alert->SetShortcut(1, B_ESCAPE);
|
||||||
alert->SetShortcut(2, B_ESCAPE);
|
|
||||||
int32 choice = alert->Go();
|
int32 choice = alert->Go();
|
||||||
|
|
||||||
|
|
||||||
switch (choice) {
|
switch (choice) {
|
||||||
case 1:
|
case 0:
|
||||||
PostMessage(B_QUIT_REQUESTED);
|
|
||||||
case 2:
|
|
||||||
{
|
{
|
||||||
status_t error;
|
status_t error;
|
||||||
error = be_roster->Launch(BLUETOOTH_SIGNATURE);
|
error = be_roster->Launch(BLUETOOTH_SIGNATURE);
|
||||||
@ -54,7 +50,11 @@ BluetoothApplication::ReadyToRun()
|
|||||||
// when it's ready and you could just create window
|
// when it's ready and you could just create window
|
||||||
BMessageRunner::StartSending(be_app_messenger,
|
BMessageRunner::StartSending(be_app_messenger,
|
||||||
new BMessage('Xtmp'), 2 * 1000000, 1);
|
new BMessage('Xtmp'), 2 * 1000000, 1);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
case 1:
|
||||||
|
PostMessage(B_QUIT_REQUESTED);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user