mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 15:05:54 +08:00
Fix for #7270 - Feature Request: Right-click object table name-field should bring up context-menu - same as in 3D Editor View
+ removed unused code
This commit is contained in:
parent
f8e734cd79
commit
172b97cc2a
@ -911,21 +911,14 @@ void ObjectList::list_manipulation(const wxPoint& mouse_pos, bool evt_context_me
|
|||||||
toggle_printable_state();
|
toggle_printable_state();
|
||||||
else if (title == _("Editing"))
|
else if (title == _("Editing"))
|
||||||
show_context_menu(evt_context_menu);
|
show_context_menu(evt_context_menu);
|
||||||
else if (title == _("Name"))
|
else if (title == _("Name"))
|
||||||
{
|
{
|
||||||
if (wxOSX)
|
if (is_windows10() && m_objects_model->HasWarningIcon(item) &&
|
||||||
show_context_menu(evt_context_menu); // return context menu under OSX (related to #2909)
|
mouse_pos.x > 2 * wxGetApp().em_unit() && mouse_pos.x < 4 * wxGetApp().em_unit())
|
||||||
|
fix_through_netfabb();
|
||||||
if (is_windows10())
|
else
|
||||||
{
|
show_context_menu(evt_context_menu); // show context menu for "Name" column too
|
||||||
int obj_idx, vol_idx;
|
}
|
||||||
get_selected_item_indexes(obj_idx, vol_idx, item);
|
|
||||||
|
|
||||||
if (m_objects_model->HasWarningIcon(item) &&
|
|
||||||
mouse_pos.x > 2 * wxGetApp().em_unit() && mouse_pos.x < 4 * wxGetApp().em_unit())
|
|
||||||
fix_through_netfabb();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// workaround for extruder editing under OSX
|
// workaround for extruder editing under OSX
|
||||||
else if (wxOSX && evt_context_menu && title == _("Extruder"))
|
else if (wxOSX && evt_context_menu && title == _("Extruder"))
|
||||||
extruder_editing();
|
extruder_editing();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user