Made the Quit menu item in the system tray appear only when the icon is clicked on with the Shift key and renamed it to Shutdown Mail Services (which is clearer)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19537 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1e15289361
commit
1080834a69
@ -538,10 +538,14 @@ DeskbarView::BuildMenu()
|
|||||||
menu->AddItem(new BMenuItem(
|
menu->AddItem(new BMenuItem(
|
||||||
MDR_DIALECT_CHOICE ("Edit Preferences","P) メール環境設定") B_UTF8_ELLIPSIS,
|
MDR_DIALECT_CHOICE ("Edit Preferences","P) メール環境設定") B_UTF8_ELLIPSIS,
|
||||||
new BMessage(MD_OPEN_PREFS)));
|
new BMessage(MD_OPEN_PREFS)));
|
||||||
menu->AddItem(new BMenuItem(
|
|
||||||
MDR_DIALECT_CHOICE ("Quit","Q) 終了"),
|
|
||||||
new BMessage(B_QUIT_REQUESTED)));
|
|
||||||
|
|
||||||
|
if (modifiers() & B_SHIFT_KEY)
|
||||||
|
{
|
||||||
|
menu->AddItem(new BMenuItem(
|
||||||
|
MDR_DIALECT_CHOICE ("Shutdown Mail Services","Q) 終了"),
|
||||||
|
new BMessage(B_QUIT_REQUESTED)));
|
||||||
|
}
|
||||||
|
|
||||||
// Reset Item Targets (only those which aren't already set)
|
// Reset Item Targets (only those which aren't already set)
|
||||||
|
|
||||||
for (int32 i = menu->CountItems();i-- > 0;)
|
for (int32 i = menu->CountItems();i-- > 0;)
|
||||||
|
Loading…
Reference in New Issue
Block a user