Skip to content

Commit

Permalink
Delay AF
Browse files Browse the repository at this point in the history
  • Loading branch information
Marekkon5 committed Feb 17, 2024
1 parent 40c1487 commit fe4c411
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions client/src/views/AudioFeatures.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,20 @@ function start() {
$1t.settings.value.audioFeatures.config = config.value;
$1t.saveSettings();
let p = null;
let p: any = null;
if (playlist.value && playlist.value.data)
p = playlist.value;
// Start
// Start bit later because router wouldn't redirect
config.value.type = 'audioFeatures';
$1t.send('startTagging', {config: config.value, playlist: p});
$router.push('/audiofeatures/status');
let c = JSON.parse(JSON.stringify(config.value));
setTimeout(() => {
$1t.send('startTagging', {config: c, playlist: p});
}, 100);
setTimeout(() => {
$router.push('/audiofeatures/status');
}, 10);
}
Expand Down

0 comments on commit fe4c411

Please sign in to comment.