MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / shouldDisplay

Function shouldDisplay

launcher/ui/pages/instance/ResourcePackPage.h:59–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 QString helpPage() const override { return "Resource-packs"; }
58
59 virtual bool shouldDisplay() const override
60 {
61 return !m_instance->traits().contains("no-texturepacks") &&
62 !m_instance->traits().contains("texturepacks");
63 }
64
65 public slots:
66 bool onSelectionChanged(const QModelIndex& current, const QModelIndex& previous) override

Callers

nothing calls this directly

Calls 2

containsMethod · 0.45
traitsMethod · 0.45

Tested by

no test coverage detected