Skip to content

Commit 174db2f

Browse files
committed
fix: emit opacityChanged signal on DBus proxy initialization
Initialize opacityChanged signal emission when DBus proxy is set up to ensure UI reflects current opacity state. Previously, the signal was only connected but not emitted initially, causing potential UI state mismatch. fix: 在 DBus 代理初始化时发送 opacityChanged 信号 在 DBus 代理设置完成时初始化 opacityChanged 信号发送,确保 UI 反映当前不 透明度状态。之前仅连接了信号但未初始发送,可能导致 UI 状态不匹配。 PMS: BUG-349439
1 parent c07b130 commit 174db2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

applets/dde-appearance/appearanceapplet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ void AppearanceApplet::initDBusProxy()
6161

6262
m_interface->setSync(false);
6363
QObject::connect(m_interface.data(), &org::deepin::dde::Appearance1::OpacityChanged, this, &AppearanceApplet::opacityChanged);
64+
Q_EMIT opacityChanged();
6465
}
6566

6667
D_APPLET_CLASS(AppearanceApplet)

0 commit comments

Comments
 (0)