mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
refactor refresh data
Change-Id: I734beb482a1cafe5f7ed7fbb60c16c0bd6eb607f
This commit is contained in:
parent
d2aeb844fa
commit
f0e52f9b75
Notes:
Deepin Code Review
2018-01-30 14:32:24 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Tue, 30 Jan 2018 14:32:24 +0800 Reviewed-on: https://cr.deepin.io/31184 Project: dde/dde-dock Branch: refs/heads/master
@ -306,7 +306,6 @@ void DockSettings::menuActionClicked(QAction *action)
|
||||
|
||||
void DockSettings::onPositionChanged()
|
||||
{
|
||||
// qDebug() << Q_FUNC_INFO;
|
||||
const Position prevPos = m_position;
|
||||
const Position nextPos = Dock::Position(m_dockInter->position());
|
||||
|
||||
@ -315,10 +314,10 @@ void DockSettings::onPositionChanged()
|
||||
|
||||
emit positionChanged(prevPos);
|
||||
|
||||
QTimer::singleShot(200, this, [=] {
|
||||
QTimer::singleShot(200, this, [this, nextPos] {
|
||||
m_position = nextPos;
|
||||
DockItem::setDockPosition(m_position);
|
||||
qApp->setProperty(PROP_POSITION, QVariant::fromValue(m_position));
|
||||
DockItem::setDockPosition(nextPos);
|
||||
qApp->setProperty(PROP_POSITION, QVariant::fromValue(nextPos));
|
||||
|
||||
calculateWindowConfig();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user