Fix renaming tracks on Sharp devices (#16)

This commit is contained in:
andyboeh 2020-08-10 13:18:00 +02:00 committed by GitHub
parent a268e65020
commit 45b437e092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -87,7 +87,9 @@ export class NetMDUSBService implements NetMDService {
async renameTrack(index: number, title: string) { async renameTrack(index: number, title: string) {
// Removing non ascii chars... Sorry, I didn't implement char encoding. // Removing non ascii chars... Sorry, I didn't implement char encoding.
title = sanitizeTitle(title); title = sanitizeTitle(title);
await this.netmdInterface!.cacheTOC();
await this.netmdInterface!.setTrackTitle(index, title); await this.netmdInterface!.setTrackTitle(index, title);
await this.netmdInterface!.syncTOC();
} }
async renameDisc(newName: string) { async renameDisc(newName: string) {