Skip to content

Commit

Permalink
qt ui bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Marekkon5 committed Apr 19, 2022
1 parent 3ff465b commit 3268559
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/src/components/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
dense
class='col-10'
placeholder='Use , as separator'
@input='$1t.settings.quickTag.genres[i].subgenres = ($event||"").split(",")'
@input='onSubgenreInput($event, i)'
:value='($1t.settings.quickTag.genres[i].subgenres||[]).join(",")'
></q-input>
</div>
Expand Down Expand Up @@ -382,6 +382,14 @@ export default {
this.$1t.settings.quickTag.genres.push({genre: this.newGenre, keybind: null});
this.newGenre = null;
},
// On subgenres changed
onSubgenreInput(e, i) {
if (!e) {
this.$1t.settings.quickTag.genres[i].subgenres = [];
return;
}
this.$1t.settings.quickTag.genres[i].subgenres = e.split(",");
},
// Mood keybind
setMoodKeybind(i, key) {
this.$1t.settings.quickTag.moods[i].keybind = key;
Expand Down

0 comments on commit 3268559

Please sign in to comment.