Example #1
0
 void Update(const CatalogItemPtr& item) override
 {
 #ifdef __WXMSW__
     auto add = _("Add comment");
     auto edit = _("Edit comment");
 #else
     auto add = _("Add Comment");
     auto edit = _("Edit Comment");
 #endif
     m_btn->SetLabel(item->HasComment() ? edit : add);
 }
Example #2
0
 bool ShouldShowForItem(const CatalogItemPtr& item) const override
 {
     return item->HasComment();
 }