From c11e40b11b963b76dbd1b440edff13b97c69abd4 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Mon, 11 Dec 2023 00:12:34 +0100 Subject: [PATCH] Fix Select component not reacting to changed list (#2885) * Fix Select component not reacting to changed list Fixes #2882. * Add msys to path on Windows in VSC settings --- .vscode.dist/settings.json | 5 ++++- .vscode.dist/tasks.json | 5 +++++ ts/components/Select.svelte | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.vscode.dist/settings.json b/.vscode.dist/settings.json index 2ab001cf2..a3338ec64 100644 --- a/.vscode.dist/settings.json +++ b/.vscode.dist/settings.json @@ -35,5 +35,8 @@ "qt/bundle/PyOxidizer": true }, "rust-analyzer.cargo.buildScripts.enable": true, - "python.analysis.typeCheckingMode": "off" + "python.analysis.typeCheckingMode": "off", + "terminal.integrated.env.windows": { + "PATH": "c:\\msys64\\usr\\bin;${env:Path}" + } } diff --git a/.vscode.dist/tasks.json b/.vscode.dist/tasks.json index 2dfcc9afa..84ce2c75e 100644 --- a/.vscode.dist/tasks.json +++ b/.vscode.dist/tasks.json @@ -10,6 +10,11 @@ ], "windows": { "command": "bash", + "options": { + "env": { + "PATH": "c:\\msys64\\usr\\bin;${env:Path}" + } + }, "args": [ "ninja", "pylib", diff --git a/ts/components/Select.svelte b/ts/components/Select.svelte index 50facef95..d476ec0ab 100644 --- a/ts/components/Select.svelte +++ b/ts/components/Select.svelte @@ -37,7 +37,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html content: item as unknown as C, }; }; - const parsed = list + $: parsed = list .map(parser) .map(({ content, value: initialValue, disabled = false }, i) => { if ((initialValue === undefined && i === value) || initialValue === value) {