mirror of https://github.com/docker/compose.git
fix(desktop): remove overly-aggressive feature flag check (#11748)
This commit is contained in:
parent
2aa568ceba
commit
fd532a37e7
|
@ -71,10 +71,6 @@ func (s *State) NavBar() bool {
|
|||
return s.determineFeatureState("ComposeNav")
|
||||
}
|
||||
|
||||
func (s *State) AutoFileShares() bool {
|
||||
return s.determineFeatureState("ComposeAutoFileShares")
|
||||
}
|
||||
|
||||
func (s *State) determineFeatureState(name string) bool {
|
||||
if s == nil || !s.active || s.desktopValues == nil {
|
||||
return false
|
||||
|
|
|
@ -33,12 +33,12 @@ func (s *composeService) SetExperiments(experiments *experimental.State) {
|
|||
}
|
||||
|
||||
func (s *composeService) manageDesktopFileSharesEnabled(ctx context.Context) bool {
|
||||
// there's some slightly redundancy here to avoid fetching the config if
|
||||
// we can already tell the feature state - in practice, we
|
||||
if !s.isDesktopIntegrationActive() || !s.experiments.AutoFileShares() {
|
||||
if !s.isDesktopIntegrationActive() {
|
||||
return false
|
||||
}
|
||||
|
||||
// synchronized file share support in Docker Desktop is dependent upon
|
||||
// a variety of factors (settings, OS, etc), which this endpoint abstracts
|
||||
fileSharesConfig, err := s.desktopCli.GetFileSharesConfig(ctx)
|
||||
if err != nil {
|
||||
logrus.Debugf("Failed to retrieve file shares config: %v", err)
|
||||
|
|
Loading…
Reference in New Issue