Skip to content

Commit

Permalink
Allow clicking the toolbar icon multiple times without moving the cur…
Browse files Browse the repository at this point in the history
…sor (#7267)

Revert "FIX:fix Gizmo tooltop disply"

This reverts commit a26c573.
  • Loading branch information
Noisyfox authored Nov 11, 2024
1 parent c17c5c8 commit cdb38d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slic3r/GUI/GLToolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,8 @@ void GLToolbar::do_action(GLToolbarItem::EActionType type, int item_id, GLCanvas
}

if (m_type == Normal && item->get_state() != GLToolbarItem::Disabled) {
// the item may get disabled during the action, if not, set it back to normal state
item->set_state(GLToolbarItem::Normal);
// the item may get disabled during the action, if not, set it back to hover state
item->set_state(GLToolbarItem::Hover);
parent.render();
}
}
Expand Down

1 comment on commit cdb38d9

@morganvenable
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was so annoying, thank you for fixing it!

Please sign in to comment.