fix: 任务栏在仅主屏显示模式下切换主屏让其跟随主屏显示

跟随主屏模式下,在切换屏幕的处理中,让任务栏显示到切换后的主屏中,根据后台返回的任务栏的显示还是隐藏状态来当前任务栏显示或者隐藏

Log: 修复切换主屏幕任务栏没有跟着切换并且没有唤起的bug
Bug: https://pms.uniontech.com/zentao/bug-view-92020.html
Bug: https://pms.uniontech.com/zentao/bug-view-92089.html
Change-Id: I472176f98b36f81f1fb00cfdc2405292a83ef4a8
This commit is contained in:
chenjun 2021-08-28 14:20:57 +08:00
parent 1407364107
commit ed21bff1d0

View File

@ -33,6 +33,7 @@ DisplayManager::DisplayManager(QObject *parent)
, m_onlyInPrimary(Utils::SettingValue("com.deepin.dde.dock.mainwindow", "/com/deepin/dde/dock/mainwindow/", "onlyShowPrimary", false).toBool())
{
connect(qApp, &QApplication::primaryScreenChanged, this, &DisplayManager::primaryScreenChanged);
connect(qApp, &QApplication::primaryScreenChanged, this, &DisplayManager::dockInfoChanged);
connect(qApp, &QGuiApplication::screenAdded, this, &DisplayManager::screenCountChanged);
connect(qApp, &QGuiApplication::screenRemoved, this, &DisplayManager::screenCountChanged);