fix the default scopeType, due to the changed Scopes/Dir order

This commit is contained in:
Gregory.Shrago
2019-03-19 20:37:14 +03:00
parent c0bf67e1f6
commit f10c422490
@@ -202,7 +202,7 @@ class FindPopupScopeUIImpl implements FindPopupScopeUI {
ScopeType scope = getScope(findModel);
ScopeType selectedScope = Arrays.stream(myComponents).filter(o -> o.first == scope).findFirst().orElse(null) == null
? myComponents[myComponents.length - 1].first
? myComponents[0].first
: scope;
if (selectedScope == MODULE) {
myModuleComboBox.setSelectedItem(findModel.getModuleName());