From 448e490376e32bd7b3210b5108824b7934704914 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Sat, 15 Feb 2025 19:59:57 +0800 Subject: [PATCH] FIX:use CenterOnScreen replace CenterOnParent jira: STUDIO-10464 Change-Id: Id42393565c5ac9d95e8d7139d3209d0fdef215ed (cherry picked from commit d244cfdae2cef9a6e4e73174fca96d7b719964b3) --- src/slic3r/GUI/SyncAmsInfoDialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/SyncAmsInfoDialog.cpp b/src/slic3r/GUI/SyncAmsInfoDialog.cpp index ff650abe9b4..d75cdd01cc3 100644 --- a/src/slic3r/GUI/SyncAmsInfoDialog.cpp +++ b/src/slic3r/GUI/SyncAmsInfoDialog.cpp @@ -37,6 +37,7 @@ wxDEFINE_EVENT(EVT_PRINT_JOB_CANCEL, wxCommandEvent); #define SYNC_FLEX_GRID_COL 7 bool SyncAmsInfoDialog::Show(bool show) { + BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << " SyncAmsInfoDialog begin show"; if (show) { if (m_options_other) { m_options_other->Hide(); } if (m_refresh_timer) { m_refresh_timer->Start(LIST_REFRESH_INTERVAL); } @@ -91,7 +92,9 @@ bool SyncAmsInfoDialog::Show(bool show) m_scrolledWindow->Scroll(0, 0); Layout(); Fit(); - CenterOnParent(); + CenterOnScreen(); + + BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << " SyncAmsInfoDialog finish show"; return DPIDialog::Show(show); }