fix copilot issues

This commit is contained in:
Alan Trebugeais
2026-05-09 00:32:36 +02:00
parent 09b6651ce8
commit 774fd6a17f
2 changed files with 3 additions and 3 deletions
@@ -269,8 +269,8 @@ function ExtensionSettingsSection({
value={typeof value === "number" ? value : (field.defaultValue as number)}
defaultValue={field.defaultValue as number}
min={field.min ?? 0}
max={field.max ?? 100}
step={field.step ?? 1}
max={field.max ?? 1}
step={field.step ?? 0.01}
onChange={(v) => {
extensionHost.setExtensionSetting(extensionId, field.id, v);
forceUpdate((n) => n + 1);
+1 -1
View File
@@ -145,7 +145,7 @@ export class ExtensionHost {
>();
private listeners = new Set<() => void>();
private fullSettingsStore: Record<string, Record<string, unknown>> | null = null;
private persistTimeout: any = null;
private persistTimeout: ReturnType<typeof setTimeout> | null = null;
private iconPathCache = new Map<string, Path2D>();
// Shared playback/project state — set by the app, queried by extensions