show cumulative download speed

code refactoring
This commit is contained in:
2024-03-26 10:58:03 +01:00
parent c6e48f4baa
commit 1b8d2e0da6
6 changed files with 40 additions and 18 deletions

View File

@@ -130,7 +130,7 @@ export default function Settings() {
* Updates yt-dlp binary via RPC
*/
const updateBinary = () => {
client.updateExecutable().then(() => pushMessage(i18n.t('toastUpdated')))
client.updateExecutable().then(() => pushMessage(i18n.t('toastUpdated'), 'success'))
}
return (
@@ -204,7 +204,7 @@ export default function Settings() {
label={i18n.t('languageSelect')}
onChange={handleLanguageChange}
>
{languages.map(l => (
{languages.toSorted((a, b) => a.localeCompare(b)).map(l => (
<MenuItem value={l} key={l}>
{capitalize(l)}
</MenuItem>