fix(config-ui-tiny): prevent using tabs when there are zero or one categories, as that doesn't work properly
This commit is contained in:
parent
4ef2d09d78
commit
43e3bed0b2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue