forked from neurodock/NeuroDock
f50c04c828
- Renamed package from me.zacharias.chat to me.neurodock across all 8 modules - Updated Gradle group from me.zacharias.neurodock to me.neurodock - Updated README and other files to reflect new Gitea org URL (Chat_things → neurodock) Dev note: 95 files touched. The Great Refactor is complete, long may it rest.
14 lines
483 B
Java
14 lines
483 B
Java
package me.neurodock.api.condations;
|
|
|
|
import me.neurodock.core.LaunchOptions;
|
|
import org.springframework.context.annotation.Condition;
|
|
import org.springframework.context.annotation.ConditionContext;
|
|
import org.springframework.core.type.AnnotatedTypeMetadata;
|
|
|
|
public class EnableIfNotDisplay implements Condition {
|
|
@Override
|
|
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
|
|
return LaunchOptions.getInstance().isNotDisplay();
|
|
}
|
|
}
|