diff --git a/src/apps/deskbar/StatusView.cpp b/src/apps/deskbar/StatusView.cpp index e530434d64..faef6f2118 100644 --- a/src/apps/deskbar/StatusView.cpp +++ b/src/apps/deskbar/StatusView.cpp @@ -371,7 +371,7 @@ TReplicantTray::ShowReplicantMenu(BPoint point) // If clock is visible show the extended menu, otherwise show "Show Time" - if (fTime != NULL) + if (!fTime->IsHidden()) fTime->ShowTimeOptions(ConvertToScreen(point)); else { BMenuItem* item = new BMenuItem(B_TRANSLATE("Show Time"), diff --git a/src/apps/deskbar/TimeView.cpp b/src/apps/deskbar/TimeView.cpp index 256542d66b..69694b7a0f 100644 --- a/src/apps/deskbar/TimeView.cpp +++ b/src/apps/deskbar/TimeView.cpp @@ -410,23 +410,17 @@ TTimeView::ShowTimeOptions(BPoint point) menu->SetFont(be_plain_font); BMenuItem* item; - if (IsHidden()) { - item = new BMenuItem(B_TRANSLATE("Show time"), - new BMessage(kShowHideTime)); - menu->AddItem(item); - } else { - item = new BMenuItem(B_TRANSLATE("Change time" B_UTF8_ELLIPSIS), - new BMessage(kChangeTime)); - menu->AddItem(item); + item = new BMenuItem(B_TRANSLATE("Change time" B_UTF8_ELLIPSIS), + new BMessage(kChangeTime)); + menu->AddItem(item); - item = new BMenuItem(B_TRANSLATE("Hide time"), - new BMessage(kShowHideTime)); - menu->AddItem(item); + item = new BMenuItem(B_TRANSLATE("Hide time"), + new BMessage(kShowHideTime)); + menu->AddItem(item); - item = new BMenuItem(B_TRANSLATE("Show calendar" B_UTF8_ELLIPSIS), - new BMessage(kShowCalendar)); - menu->AddItem(item); - } + item = new BMenuItem(B_TRANSLATE("Show calendar" B_UTF8_ELLIPSIS), + new BMessage(kShowCalendar)); + menu->AddItem(item); menu->SetTargetForItems(this); // Changed to accept screen coord system point;