mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Fix freeze after hiding sync popup (#13657)
Avoid calling Show() on the main frame when it is already visible from BaseTransparentDPIFrame::on_hide(). On GTK this can re-enter size/layout handling after filament sync and leave the UI unresponsive.
This commit is contained in:
committed by
GitHub
parent
9c5f33fd57
commit
dd8cb89f6d
@@ -156,9 +156,11 @@ void BaseTransparentDPIFrame::on_hide()
|
|||||||
m_refresh_timer->Stop();
|
m_refresh_timer->Stop();
|
||||||
}
|
}
|
||||||
Hide();
|
Hide();
|
||||||
if (wxGetApp().mainframe != nullptr) {
|
auto *mainframe = wxGetApp().mainframe;
|
||||||
wxGetApp().mainframe->Show();
|
if (mainframe != nullptr) {
|
||||||
wxGetApp().mainframe->Raise();
|
if (!mainframe->IsShown())
|
||||||
|
mainframe->Show();
|
||||||
|
mainframe->Raise();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -296,4 +298,4 @@ void BaseTransparentDPIFrame::deal_ok() {}
|
|||||||
|
|
||||||
void BaseTransparentDPIFrame::deal_cancel(){}
|
void BaseTransparentDPIFrame::deal_cancel(){}
|
||||||
|
|
||||||
}} // namespace Slic3r::GUI
|
}} // namespace Slic3r::GUI
|
||||||
|
|||||||
Reference in New Issue
Block a user