1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
If the status button is disabled, then we stay consistent by disallowing the desktop GUI's status setting actions, which are used by the tray icon.
This commit is contained in:
tux3 2015-05-11 23:01:25 +02:00
parent 45c3491180
commit 12bbd47239
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -1214,16 +1214,25 @@ void Widget::onTryCreateTrayIcon()
void Widget::setStatusOnline()
{
if (!ui->statusButton->isEnabled())
return;
Nexus::getCore()->setStatus(Status::Online);
}
void Widget::setStatusAway()
{
if (!ui->statusButton->isEnabled())
return;
Nexus::getCore()->setStatus(Status::Away);
}
void Widget::setStatusBusy()
{
if (!ui->statusButton->isEnabled())
return;
Nexus::getCore()->setStatus(Status::Busy);
}