fix(config-ui-tiny): prevent using tabs when there are zero or one categories, as that doesn't work properly
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/jfmod Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2023-08-19 19:44:22 +02:00
parent 4ef2d09d78
commit 43e3bed0b2
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ public class TinyConfigScreen extends ScreenWithSaveHook {
this.considerTabs = config.getEntries().isEmpty()
&& config.getPresets().keySet().stream().allMatch(s -> s.equals(CategoryBuilder.CONFIG_PRESET_DEFAULT))
&& config.getReferencedConfigs().isEmpty()
&& config.getCategories().size() > 1
&& JfConfigSafe.TRANSLATION_SUPPLIER.apply(config.getTranslationPrefix() + "tooltip") == null;
}