ignore repeat signal

Change-Id: Ifa5a245bfa895b9b07fa7e6fe81a588848676397
This commit is contained in:
石博文 2016-06-30 15:55:43 +08:00 committed by Hualet Wang
parent 4ab6caff79
commit bff1cfc610
2 changed files with 4 additions and 2 deletions

View File

@ -46,7 +46,7 @@ int main(int argc, char *argv[])
QDBusConnection::sessionBus().registerObject("/com/deepin/dde/dock", "com.deepin.dde.dock", &mw);
RegisterDdeSession();
QTimer::singleShot(500, &mw, &MainWindow::show);
QTimer::singleShot(300, &mw, &MainWindow::show);
return app.exec();
}

View File

@ -249,7 +249,7 @@ void MainWindow::expand()
{
const QPoint finishPos(0, 0);
if (m_mainPanel->pos() == finishPos)
if (m_mainPanel->pos() == finishPos && m_settings->windowSize() == this->size())
return;
// reset environment
@ -325,6 +325,8 @@ void MainWindow::updatePanelVisible()
const Dock::HideState state = m_settings->hideState();
// qDebug() << state;
if (state == Unknown)
return;