mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Don't write tox_save when unnecessary
Fixes #76 and makes the GUI noticeably faster on slow hard drive.
This commit is contained in:
parent
c3f985db8a
commit
fce95e9637
1
core.cpp
1
core.cpp
|
@ -334,6 +334,7 @@ void Core::requestFriendship(const QString& friendAddress, const QString& messag
|
|||
} else {
|
||||
emit friendAdded(friendId, userId);
|
||||
}
|
||||
saveConfiguration();
|
||||
}
|
||||
|
||||
void Core::sendMessage(int friendId, const QString& message)
|
||||
|
|
|
@ -214,8 +214,8 @@ Widget::Widget(QWidget *parent) :
|
|||
connect(ui->nameLabel, SIGNAL(textChanged(QString,QString)), this, SLOT(onUsernameChanged(QString,QString)));
|
||||
connect(ui->statusLabel, SIGNAL(textChanged(QString,QString)), this, SLOT(onStatusMessageChanged(QString,QString)));
|
||||
connect(ui->statImg, SIGNAL(clicked()), this, SLOT(onStatusImgClicked()));
|
||||
connect(&settingsForm.name, SIGNAL(textChanged(QString)), this, SLOT(onUsernameChanged(QString)));
|
||||
connect(&settingsForm.statusText, SIGNAL(textChanged(QString)), this, SLOT(onStatusMessageChanged(QString)));
|
||||
connect(&settingsForm.name, SIGNAL(textEdited(QString)), this, SLOT(onUsernameChanged(QString)));
|
||||
connect(&settingsForm.statusText, SIGNAL(textEdited(QString)), this, SLOT(onStatusMessageChanged(QString)));
|
||||
connect(&friendForm, SIGNAL(friendRequested(QString,QString)), this, SIGNAL(friendRequested(QString,QString)));
|
||||
|
||||
coreThread->start();
|
||||
|
@ -431,7 +431,6 @@ void Widget::addFriend(int friendId, const QString &userId)
|
|||
connect(core, &Core::avEnding, newfriend->chatForm, &ChatForm::onAvEnding);
|
||||
connect(core, &Core::avRequestTimeout, newfriend->chatForm, &ChatForm::onAvRequestTimeout);
|
||||
connect(core, &Core::avPeerTimeout, newfriend->chatForm, &ChatForm::onAvPeerTimeout);
|
||||
core->saveConfiguration();
|
||||
}
|
||||
|
||||
void Widget::addFriendFailed(const QString&)
|
||||
|
|
Loading…
Reference in New Issue
Block a user