Skip to content

Commit 3268559

Browse files
committed
qt ui bug
1 parent 3ff465b commit 3268559

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

client/src/components/Settings.vue

+9-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
dense
158158
class='col-10'
159159
placeholder='Use , as separator'
160-
@input='$1t.settings.quickTag.genres[i].subgenres = ($event||"").split(",")'
160+
@input='onSubgenreInput($event, i)'
161161
:value='($1t.settings.quickTag.genres[i].subgenres||[]).join(",")'
162162
></q-input>
163163
</div>
@@ -382,6 +382,14 @@ export default {
382382
this.$1t.settings.quickTag.genres.push({genre: this.newGenre, keybind: null});
383383
this.newGenre = null;
384384
},
385+
// On subgenres changed
386+
onSubgenreInput(e, i) {
387+
if (!e) {
388+
this.$1t.settings.quickTag.genres[i].subgenres = [];
389+
return;
390+
}
391+
this.$1t.settings.quickTag.genres[i].subgenres = e.split(",");
392+
},
385393
// Mood keybind
386394
setMoodKeybind(i, key) {
387395
this.$1t.settings.quickTag.moods[i].keybind = key;

0 commit comments

Comments
 (0)