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