mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-26 01:28:37 -07:00
FIX:If studio is not activated in mac, the window of filme_group_popup will not pop up
jira: STUDIO-12228 Change-Id: Ic1ca62e68fb13c7cbf8ee35f948b05b01e010a62 (cherry picked from commit 63ba575f0e8881866d47c99bd521087210c57230)
This commit is contained in:
parent
cb30fd86b5
commit
5deae31f6d
1 changed files with 5 additions and 0 deletions
|
|
@ -1614,6 +1614,11 @@ wxBoxSizer* MainFrame::create_side_tools()
|
|||
m_filament_group_popup = new FilamentGroupPopup(m_slice_btn);
|
||||
|
||||
auto try_hover_pop_up = [this]() {
|
||||
#ifdef __APPLE__
|
||||
if (!IsActive()) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
wxPoint pos = m_slice_btn->ClientToScreen(wxPoint(0, 0));
|
||||
pos.y += m_slice_btn->GetRect().height * 1.25;
|
||||
pos.x -= (m_slice_option_btn->GetRect().width + FromDIP(380) * 0.6);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue