fixed the advanced installer to show an error if bonelab is not there.

This commit is contained in:
Shane Harris
2022-10-19 17:20:52 +02:00
parent 8665dcc848
commit 8cdd3e4dd8
@@ -274,8 +274,12 @@ export class HeadsetSettingsComponent implements OnInit {
'echo https://blrepo.laund.moe/repository.json > ' +
'/sdcard/Android/data/com.StressLevelZero.BONELAB/files/repositories.txt'
)
.then(() => {
this.statusService.showStatus('Enabled BONELAB mods OK!!');
.then(res => {
if (res.trim()) {
this.statusService.showStatus(res.trim(), true);
} else {
this.statusService.showStatus('Enabled BONELAB mods OK!!');
}
})
.catch(e => {
this.statusService.showStatus(e, true);