Hide cloud if levels is empty

This commit is contained in:
utkabobr
2025-04-06 20:29:57 +03:00
parent 0933adf1b9
commit e4320be0ce
2 changed files with 6 additions and 1 deletions
@@ -257,6 +257,10 @@ public class CloudController {
return userFeatures;
}
public static boolean hasAccountFeatures() {
return userFeatures != null && !userFeatures.levels.isEmpty();
}
public static boolean isSyncAvailable() {
return Prefs.getCloudAPIToken() != null && userInfo != null && userFeatures != null && userInfo.currentLevel >= userFeatures.syncRequiredLevel;
}