Browse Source

rt

final/10.0
XiaXiang 7 years ago
parent
commit
ba74e900f2
  1. 18
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java

18
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java

@ -185,19 +185,11 @@ public class RecentSearchManager implements AlphaFineSearchProvider {
UpdateAction action = UpdateActionManager.getUpdateActionManager().getActionByName(model.getName()); UpdateAction action = UpdateActionManager.getUpdateActionManager().getActionByName(model.getName());
if (action != null) { if (action != null) {
((ActionModel) model).setAction(action); ((ActionModel) model).setAction(action);
if (recentModelList.contains(model)) { addModel(model);
continue;
}
recentModelList.add(model);
} }
} else { } else {
if (recentModelList.contains(model)) { addModel(model);
continue;
} }
recentModelList.add(model);
}
} }
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error("local search error: " + e.getMessage()); FineLoggerFactory.getLogger().error("local search error: " + e.getMessage());
@ -206,5 +198,11 @@ public class RecentSearchManager implements AlphaFineSearchProvider {
return recentModelList; return recentModelList;
} }
private void addModel(AlphaCellModel model) {
if (!recentModelList.contains(model)) {
recentModelList.add(model);
}
}
} }

Loading…
Cancel
Save