Skip to content

Commit

Permalink
Merge pull request #1106 from amvanbaren/disable-extension-control
Browse files Browse the repository at this point in the history
Add ability to disable extension control
  • Loading branch information
amvanbaren authored Feb 13, 2025
2 parents 1f69309 + 4fd7871 commit 5bae340
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public class ExtensionControlService {
@Value("${ovsx.data.mirror.enabled:false}")
boolean mirrorEnabled;

@Value("${ovsx.extension-control.enabled:true}")
boolean enabled;

@Value("${ovsx.extension-control.update-on-start:false}")
boolean updateOnStart;

Expand All @@ -75,7 +78,7 @@ public ExtensionControlService(

@EventListener
public void applicationStarted(ApplicationStartedEvent event) {
if(mirrorEnabled) {
if(!enabled || mirrorEnabled) {
return;
}
if(updateOnStart) {
Expand Down

0 comments on commit 5bae340

Please sign in to comment.