mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
re-move idle timer construction before restoreGeometry
This commit is contained in:
parent
9df3fdc2a0
commit
1340e00f69
|
@ -74,6 +74,10 @@ void Widget::init()
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
idleTimer = new QTimer();
|
||||||
|
idleTimer->setSingleShot(true);
|
||||||
|
setIdleTimer(Settings::getInstance().getAutoAwayTime());
|
||||||
|
|
||||||
//restore window state
|
//restore window state
|
||||||
restoreGeometry(Settings::getInstance().getWindowGeometry());
|
restoreGeometry(Settings::getInstance().getWindowGeometry());
|
||||||
restoreState(Settings::getInstance().getWindowState());
|
restoreState(Settings::getInstance().getWindowState());
|
||||||
|
@ -128,10 +132,6 @@ void Widget::init()
|
||||||
ui->statusbar->hide();
|
ui->statusbar->hide();
|
||||||
ui->menubar->hide();
|
ui->menubar->hide();
|
||||||
|
|
||||||
idleTimer = new QTimer();
|
|
||||||
idleTimer->setSingleShot(true);
|
|
||||||
setIdleTimer(Settings::getInstance().getAutoAwayTime());
|
|
||||||
|
|
||||||
layout()->setContentsMargins(0, 0, 0, 0);
|
layout()->setContentsMargins(0, 0, 0, 0);
|
||||||
ui->friendList->setStyleSheet(Style::resolve(Style::getStylesheet(":ui/friendList/friendList.css")));
|
ui->friendList->setStyleSheet(Style::resolve(Style::getStylesheet(":ui/friendList/friendList.css")));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user