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
|
||||
variant="outline"
|
||||
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
|
||||
engine.metadata(name, description);
|
||||
open = false;
|
||||
}}
|
||||
>
|
||||
<Save size="16" />
|
||||
|
||||
@@ -70,6 +70,11 @@
|
||||
});
|
||||
|
||||
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({
|
||||
color: colorChanged ? color : undefined,
|
||||
opacity: opacityChanged ? opacity : undefined,
|
||||
@@ -84,8 +89,6 @@
|
||||
$defaultWidth = width;
|
||||
}
|
||||
}
|
||||
|
||||
open = false;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user