Style fixes.

This commit is contained in:
Adrien Destugues
2014-03-06 08:59:04 +01:00
parent 54e1893c41
commit 0009559ca3
@@ -62,7 +62,8 @@ GeneralView::GeneralView(SettingsHost* host)
B_TRANSLATE("seconds of inactivity")); B_TRANSLATE("seconds of inactivity"));
// Default position // Default position
// TODO: Here will come a screen representation with the four corners clickable // TODO: Here will come a screen representation with the four corners
// clickable
// Load settings // Load settings
Load(); Load();
@@ -105,7 +106,8 @@ void
GeneralView::MessageReceived(BMessage* msg) GeneralView::MessageReceived(BMessage* msg)
{ {
switch (msg->what) { switch (msg->what) {
case kToggleNotifications: { case kToggleNotifications:
{
entry_ref ref; entry_ref ref;
// Check if server is available // Check if server is available
@@ -139,7 +141,7 @@ GeneralView::MessageReceived(BMessage* msg)
} }
// Send quit message // Send quit message
if (messenger.SendMessage(new BMessage(B_QUIT_REQUESTED)) != B_OK) { if (messenger.SendMessage(B_QUIT_REQUESTED) != B_OK) {
BAlert* alert = new BAlert(B_TRANSLATE( BAlert* alert = new BAlert(B_TRANSLATE(
"Notifications"), B_TRANSLATE("Cannot disable" "Notifications"), B_TRANSLATE("Cannot disable"
" notifications because the server can't be " " notifications because the server can't be "
@@ -165,7 +167,8 @@ GeneralView::MessageReceived(BMessage* msg)
return; return;
} }
} }
} break; break;
}
case kSettingChanged: case kSettingChanged:
SettingsPane::MessageReceived(msg); SettingsPane::MessageReceived(msg);
break; break;