fix(notification): 修复通知中心与通知弹窗位置异常的bug

This commit is contained in:
youdiansaodongxi 2024-09-14 14:32:20 +08:00
parent e680a511a1
commit 758835fca2
1 changed files with 3 additions and 1 deletions

View File

@ -175,7 +175,9 @@ void SidebarMain::initPopupWindow()
connect(m_notificationPC, &SidebarView::visibleChanged,
m_popupPC, [=] (const bool isSidebarShow) {
m_popupPC->updateWindowPosition(isSidebarShow, m_notificationPC->width());
if (m_notificationPC->screen() == m_popupPC->screen()) {
m_popupPC->updateWindowPosition(isSidebarShow, m_notificationPC->width());
}
});
m_popupPC->loadQML();