[SSE] Fix macro list
This commit is contained in:
parent
f80a1f7652
commit
a086f9e068
|
@ -154,8 +154,15 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
refreshList: function() {
|
refreshList: function() {
|
||||||
if (this.props) {
|
if (this.props && this.props.macroList) {
|
||||||
this.props.macroList && this.macroList.store.reset(this.props.macroList);
|
var list = this.props.macroList;
|
||||||
|
var arr = [];
|
||||||
|
for (var i=0; i<list.length; i++) {
|
||||||
|
arr.push({
|
||||||
|
value: list[i]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.macroList.store.reset(arr);
|
||||||
if (this.props.current) {
|
if (this.props.current) {
|
||||||
this.txtName.setValue(this.props.current);
|
this.txtName.setValue(this.props.current);
|
||||||
this.findMacro(this.props.current);
|
this.findMacro(this.props.current);
|
||||||
|
|
Loading…
Reference in a new issue