Merge pull request #585 from SVG-Edit/issues/584

#584 the select button changes when working on a path
This commit is contained in:
JFH
2021-06-15 01:10:03 +02:00
committed by GitHub
3 changed files with 12 additions and 16 deletions

View File

@@ -636,8 +636,8 @@ class TopPanel {
* @returns {void}
*/
linkControlPoints() {
const linked = $id("tool_node_link").pressed;
$id("tool_node_link").pressed = !linked;
$id("tool_node_link").pressed = ($id("tool_node_link").pressed) ? false : true;
const linked = ($id("tool_node_link").pressed) ? true : false;
this.path.linkControlPoints(linked);
}
@@ -970,7 +970,7 @@ class TopPanel {
</div> <!-- a_panel -->
<div id="path_node_panel">
<div class="tool_sep"></div>
<se-button id="tool_node_link" title="${i18next.t('tools.node_link')}" src="./images/tool_node_link.svg" pressed>
<se-button id="tool_node_link" title="${i18next.t('tools.node_link')}" src="./images/tool_node_link.svg" pressed>
</se-button>
<div class="tool_sep"></div>
<se-spin-input id="path_node_x" data-attr="x" size="4" title="${i18next.t('properties.node_x')}" label="x:">