mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Added separate icon for the SLA printer presets
DoubleSlider: + fixed bug with un-hidden tooltip when OneLayerLock is on + MultiAsSingle mode : Show context menu on Cog icon after L/RButtonClick
This commit is contained in:
parent
b8c898bf40
commit
10ade4192c
6 changed files with 86 additions and 16 deletions
|
@ -1032,7 +1032,11 @@ void Control::OnMotion(wxMouseEvent& event)
|
|||
const wxPoint pos = event.GetLogicalPosition(wxClientDC(this));
|
||||
int tick = -1;
|
||||
|
||||
if (!m_is_left_down && !m_is_one_layer)
|
||||
/* Note: Checking "!m_is_one_layer" is commented now because of
|
||||
* it looks like unnecessary and cause a tooltip "One layer" showing when OneLayerLock is on
|
||||
* #ysFIXME : Delete it after testing
|
||||
* */
|
||||
if (!m_is_left_down/* && !m_is_one_layer*/)
|
||||
{
|
||||
if (is_point_in_rect(pos, m_rect_one_layer_icon))
|
||||
m_focus = fiOneLayerIcon;
|
||||
|
@ -1166,7 +1170,10 @@ void Control::OnLeftUp(wxMouseEvent& event)
|
|||
add_current_tick();
|
||||
break;
|
||||
case maCogIconClick :
|
||||
jump_to_print_z();
|
||||
if (m_mode == t_mode::MultiAsSingle)
|
||||
show_cog_icon_context_menu();
|
||||
else
|
||||
jump_to_print_z();
|
||||
break;
|
||||
case maOneLayerIconClick:
|
||||
switch_one_layer_mode();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue