mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Use an unique opengl context
This commit is contained in:
parent
f31cf684cb
commit
96745e12d7
8 changed files with 91 additions and 7 deletions
|
@ -339,13 +339,13 @@ void GLToolbar::do_action(unsigned int item_id)
|
|||
item->set_state(GLToolbarItem::Hover);
|
||||
|
||||
m_parent.render();
|
||||
item->do_action(m_parent.widget());
|
||||
item->do_action(m_parent.get_wxglcanvas());
|
||||
}
|
||||
else
|
||||
{
|
||||
item->set_state(GLToolbarItem::HoverPressed);
|
||||
m_parent.render();
|
||||
item->do_action(m_parent.widget());
|
||||
item->do_action(m_parent.get_wxglcanvas());
|
||||
if (item->get_state() != GLToolbarItem::Disabled)
|
||||
{
|
||||
// the item may get disabled during the action, if not, set it back to hover state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue