remove "run platform tests" button in settings

This commit is contained in:
Peli de Halleux 2015-03-17 15:35:10 -07:00
Родитель ef67f2e2ed
Коммит b9468b22c1
2 изменённых файлов: 13 добавлений и 18 удалений

Просмотреть файл

@ -4113,21 +4113,16 @@ module TDev
(v) => RuntimeSettings.setLocation(v), RuntimeSettings.location())), (v) => RuntimeSettings.setLocation(v), RuntimeSettings.location())),
div("wall-dialog-body", HTML.mkCheckBox(lf("play sounds and music"), div("wall-dialog-body", HTML.mkCheckBox(lf("play sounds and music"),
(v) => RuntimeSettings.setSounds(v), RuntimeSettings.sounds())), (v) => RuntimeSettings.setSounds(v), RuntimeSettings.sounds())),
div("wall-dialog-body",
HTML.mkButton(lf("show diagnostic log"),() => {
m.dismiss();
Editor.showLog();
}), lf("internal log used for diagnostics.")
),
div("wall-dialog-body", zoomSlide, zoomLabel),
betaDiv, betaDiv,
div("wall-dialog-body", HTML.mkCheckBox(lf("force offline mode"), div("wall-dialog-body", HTML.mkCheckBox(lf("force offline mode"),
(v) => Cloud.setTouchDevelopOnline(!v), !Cloud.isTouchDevelopOnline())), (v) => Cloud.setTouchDevelopOnline(!v), !Cloud.isTouchDevelopOnline()))
div("wall-dialog-body", zoomSlide, zoomLabel),
div("wall-dialog-body",
HTML.mkButton(lf("run platform tests"), () => {
Util.setHash("hub:test");
}), lf("check if everything works")
),
div("wall-dialog-body",
HTML.mkButton(lf("show diagnostic log"), () => {
m.dismiss();
Editor.showLog();
}), lf("internal log used for diagnostics.")
)
]) ])
if (TDev.dbg) { if (TDev.dbg) {
@ -4162,10 +4157,7 @@ module TDev
(dbg ? HTML.mkButton(lf("show internal icons"), () => { ScriptProperties.showIcons(); }) : null), (dbg ? HTML.mkButton(lf("show internal icons"), () => { ScriptProperties.showIcons(); }) : null),
]); ]);
} }
m.add([ m.add(div("wall-dialog-buttons", HTML.mkButton(lf("close"), () => m.dismiss())));
div("wall-dialog-buttons",
HTML.mkButton(lf("close"), () => m.dismiss())),
]);
m.setScroll(); m.setScroll();
m.fullWhite(); m.fullWhite();

Просмотреть файл

@ -69,7 +69,10 @@ module TDev
public add(v:any) public add(v:any)
{ {
this.dialog.appendChildren([v]); if (v && Array.isArray(v))
this.dialog.appendChildren(v);
else
this.dialog.appendChildren([v]);
} }
public addClass(c:string) public addClass(c:string)