fix(ManagedPackPage): check app capabilities for creating the CF page
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
c5c426ecbc
commit
cb12c51afc
@ -47,7 +47,7 @@ ManagedPackPage* ManagedPackPage::createPage(BaseInstance* inst, QString type, Q
|
|||||||
{
|
{
|
||||||
if (type == "modrinth")
|
if (type == "modrinth")
|
||||||
return new ModrinthManagedPackPage(inst, nullptr, parent);
|
return new ModrinthManagedPackPage(inst, nullptr, parent);
|
||||||
if (type == "flame")
|
if (type == "flame" && (APPLICATION->capabilities() & Application::SupportsFlame))
|
||||||
return new FlameManagedPackPage(inst, nullptr, parent);
|
return new FlameManagedPackPage(inst, nullptr, parent);
|
||||||
|
|
||||||
return new GenericManagedPackPage(inst, nullptr, parent);
|
return new GenericManagedPackPage(inst, nullptr, parent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user