#584 the select button changes when working on a path
This commit is contained in:
@@ -346,13 +346,8 @@ class Editor extends EditorStartup {
|
||||
$id('path_node_panel').style.display = (editmode) ? 'block' : 'none';
|
||||
if (editmode) {
|
||||
// Change select icon
|
||||
const elements = document.getElementsByClassName("tool_button_current");
|
||||
Array.from(elements).forEach(function (element) {
|
||||
element.classList.add('tool_button_current');
|
||||
element.classList.remove('tool_button');
|
||||
});
|
||||
$id('tool_select').classList.add('tool_button_current');
|
||||
$id('tool_select').classList.remove('tool_button');
|
||||
$id('tool_path').pressed = false;
|
||||
$id('tool_select').pressed = true;
|
||||
this.multiselected = false;
|
||||
if (elems.length) {
|
||||
this.selectedElement = elems[0];
|
||||
|
||||
@@ -634,8 +634,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);
|
||||
}
|
||||
|
||||
@@ -968,7 +968,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={${true}}>
|
||||
</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:">
|
||||
|
||||
Reference in New Issue
Block a user