mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 多屏扩展模式下,任务栏右键菜单添加“多屏显示设置”
仅vga或者hdmi时会出现单屏幕时出现‘多屏显示设置’菜单项 Log: 任务栏支持配置仅显示在主屏 Task: https://pms.uniontech.com/zentao/task-view-83869.html (cherry picked from commit eaee60ba9a0ae0fcd5dfdcecc84bc9217ba1dd6e) Change-Id: Ib7f0b24709b0e8810b1d4363fa962fe9cbace522
This commit is contained in:
parent
ed21bff1d0
commit
7aec7a0cf8
@ -209,7 +209,7 @@ QMenu *MenuWorker::createMenu()
|
||||
|
||||
// 多屏显示设置 仅多屏扩展模式显示菜单
|
||||
if ((!menuSettings || !menuSettings->keys().contains("multiscreenVisible") || menuSettings->get("multiscreenVisible").toBool())
|
||||
&& !DIS_INS->isCopyMode()) {
|
||||
&& (QApplication::screens().size() > 1) && !DIS_INS->isCopyMode()) {
|
||||
bool onlyShowPrimary = Utils::SettingValue("com.deepin.dde.dock.mainwindow", "/com/deepin/dde/dock/mainwindow/", "onlyShowPrimary", false).toBool();
|
||||
|
||||
QMenu *displaySubMenu = new QMenu(settingsMenu);
|
||||
|
Loading…
x
Reference in New Issue
Block a user