mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix #928
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:
parent
45c3491180
commit
12bbd47239
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user