FIX:If studio is not activated in mac, the window of filme_group_popup will not pop up

jira: STUDIO-12228
Change-Id: Ic1ca62e68fb13c7cbf8ee35f948b05b01e010a62
This commit is contained in:
zhou.xu 2025-05-20 16:39:03 +08:00 committed by lane.wei
parent e0401306c1
commit 63ba575f0e

View File

@ -1691,6 +1691,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);