Browse Source

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.
pull/1629/head
tux3 10 years ago
parent
commit
12bbd47239
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 9
      src/widget/widget.cpp

9
src/widget/widget.cpp

@ -1214,16 +1214,25 @@ void Widget::onTryCreateTrayIcon() @@ -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…
Cancel
Save