1
0
Fork 0
mirror of synced 2024-09-20 11:27:56 +12:00

Fix settings bar values not working with default values

This commit is contained in:
Andrew Kingston 2024-08-05 16:42:34 +01:00
parent e3f4e5525e
commit c6cb267b30
No known key found for this signature in database

View file

@ -254,6 +254,7 @@
prop={setting.key}
options={setting.options}
label={setting.label}
{component}
/>
{/if}
{:else if setting.type === "boolean"}
@ -262,9 +263,10 @@
icon={setting.barIcon}
title={setting.barTitle || setting.label}
bool
{component}
/>
{:else if setting.type === "color"}
<SettingsColorPicker prop={setting.key} />
<SettingsColorPicker prop={setting.key} {component} />
{/if}
{#if setting.barSeparator !== false && (settings.length != idx + 1 || !isRoot)}
<div class="divider" />