mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
Allow to globally disable the kill button
(only needed in swift pilot client so far)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
66e17d62b6
commit
6999a97f73
@@ -135,8 +135,8 @@ namespace BlackGui
|
||||
|
||||
void COverlayMessages::showKill(bool show)
|
||||
{
|
||||
ui->tb_Kill->setVisible(show);
|
||||
ui->tb_Kill->setEnabled(show);
|
||||
ui->tb_Kill->setVisible(m_hasKillButton && show);
|
||||
ui->tb_Kill->setEnabled(m_hasKillButton && show);
|
||||
}
|
||||
|
||||
bool COverlayMessages::displayTextMessage(const CTextMessage &textMessage) const
|
||||
@@ -289,6 +289,11 @@ namespace BlackGui
|
||||
}
|
||||
}
|
||||
|
||||
void COverlayMessages::showKillButton(bool killButton)
|
||||
{
|
||||
this->m_hasKillButton = killButton;
|
||||
}
|
||||
|
||||
void COverlayMessages::setModeToMessages(bool withKillButton)
|
||||
{
|
||||
ui->sw_StatusMessagesComponent->setCurrentWidget(ui->pg_StatusMessages);
|
||||
|
||||
Reference in New Issue
Block a user