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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue