kiran-control-panel/0017-fix-network-tray-Fixed-a-flash-issue-when-the-tray-p.patch
luoqing f0283207a1 fix(tray):Fixed a flash issue when the tray position changed from bottom to top, the first time to click the tray, the page display position is not correct, resulting in a flash issue
-  修复托盘位置由底部变为顶部时,第一次点击托盘,页面显示位置不对,导致的闪现问题
2023-10-23 10:13:02 +08:00

31 lines
1.2 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From e21e0b228328722ded74ffa92668338544d9c0cd Mon Sep 17 00:00:00 2001
From: luoqing <luoqing@kylinsec.com.cn>
Date: Thu, 19 Oct 2023 13:59:27 +0800
Subject: [PATCH 2/2] fix(network-tray):Fixed a flash issue when the tray
position changed from bottom to top, the first time to click the tray, the
page display position is not correct, resulting in a flash issue
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修复托盘位置由底部变为顶部时,第一次点击托盘,页面显示位置不对,导致的闪现问题
---
plugins/network/src/tray/network-tray.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/network/src/tray/network-tray.cpp b/plugins/network/src/tray/network-tray.cpp
index c43d8ff..9834a0e 100644
--- a/plugins/network/src/tray/network-tray.cpp
+++ b/plugins/network/src/tray/network-tray.cpp
@@ -282,6 +282,7 @@ void NetworkTray::showOrHideTrayPage()
this->hide();
else
{
+ setTrayPagePos();
// XXX:托盘界面在不可见的情况不方便去修改size和位置暂时先显示后在调整大小和位置
// this->setFixedSize(258, 258);
this->show();
--
2.33.0