Skip to content

Commit d07a5f8

Browse files
Merge pull request #6263 from microsoft/fix-mac-stackoverflow
fix mac stackoverflow
2 parents 11537ae + a875538 commit d07a5f8

File tree

1 file changed

+4
-0
lines changed
  • PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.core/src/com/microsoft/azure/toolkit/eclipse/common/component

1 file changed

+4
-0
lines changed

PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.core/src/com/microsoft/azure/toolkit/eclipse/common/component/AzureComboBox.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import javax.annotation.Nullable;
1919

2020
import org.apache.commons.lang3.StringUtils;
21+
import org.apache.commons.lang3.SystemUtils;
2122
import org.apache.commons.lang3.exception.ExceptionUtils;
2223
import org.eclipse.jface.viewers.ArrayContentProvider;
2324
import org.eclipse.jface.viewers.LabelProvider;
@@ -274,6 +275,9 @@ public void setEnabled(boolean b) {
274275
}
275276

276277
public boolean isEnabled() {
278+
if (SystemUtils.IS_OS_MAC) {
279+
return this.enabled;
280+
}
277281
return this.enabled || this.viewer.isEnabled();
278282
}
279283

0 commit comments

Comments
 (0)