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); }
bool ShouldShowForItem(const CatalogItemPtr& item) const override { return item->HasComment(); }