mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
looks simpler and more self-explaining
This commit is contained in:
parent
9e54cf6a48
commit
9b740676ac
1 changed files with 3 additions and 5 deletions
|
@ -537,10 +537,8 @@ export default {
|
|||
player.selectAudioLanguage(lang);
|
||||
}
|
||||
|
||||
(() => {
|
||||
const audioLanguages = player.getAudioLanguages();
|
||||
if (audioLanguages.length == 1 && audioLanguages[0] == "und") return;
|
||||
|
||||
const audioLanguages = player.getAudioLanguages();
|
||||
if (audioLanguages.length > 1) {
|
||||
const overflowMenuButtons = this.$ui.getConfiguration().overflowMenuButtons;
|
||||
// append language menu on index 1
|
||||
const newOverflowMenuButtons = [
|
||||
|
@ -549,7 +547,7 @@ export default {
|
|||
...overflowMenuButtons.slice(1),
|
||||
];
|
||||
this.$ui.configure("overflowMenuButtons", newOverflowMenuButtons);
|
||||
})();
|
||||
}
|
||||
|
||||
if (qualityConds) {
|
||||
var leastDiff = Number.MAX_VALUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue