mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-06 22:04:06 +00:00
small fix
This commit is contained in:
@@ -49,9 +49,12 @@
|
|||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
onclick={() => {
|
onclick={() => {
|
||||||
|
// closes the dialog now: `open` follows `editMetadata`, and the change of the file
|
||||||
|
// would open the dialog again before the effect below has reset it
|
||||||
|
editMetadata.current = false;
|
||||||
|
open = false;
|
||||||
// the metadata of the selected elements are changed
|
// the metadata of the selected elements are changed
|
||||||
engine.metadata(name, description);
|
engine.metadata(name, description);
|
||||||
open = false;
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Save size="16" />
|
<Save size="16" />
|
||||||
|
|||||||
@@ -70,6 +70,11 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
function applyStyle() {
|
function applyStyle() {
|
||||||
|
// closes the dialog now: `open` follows `editStyle`, and the style changes the file, which
|
||||||
|
// would open the dialog again before the effect below has reset it
|
||||||
|
editStyle.current = false;
|
||||||
|
open = false;
|
||||||
|
|
||||||
engine.style({
|
engine.style({
|
||||||
color: colorChanged ? color : undefined,
|
color: colorChanged ? color : undefined,
|
||||||
opacity: opacityChanged ? opacity : undefined,
|
opacity: opacityChanged ? opacity : undefined,
|
||||||
@@ -84,8 +89,6 @@
|
|||||||
$defaultWidth = width;
|
$defaultWidth = width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
open = false;
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user