mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Improved kill button handling, now it can be set even if frame is not yet initialized
* default is disabled * only pilot client needs to enable it
This commit is contained in:
committed by
Mathew Sutcliffe
parent
0851b8c994
commit
83383f438c
@@ -35,6 +35,7 @@ namespace BlackGui
|
||||
|
||||
void COverlayMessagesFrame::showKillButton(bool killButton)
|
||||
{
|
||||
m_showKillButton = killButton;
|
||||
if (m_overlayMessages)
|
||||
{
|
||||
m_overlayMessages->showKillButton(killButton);
|
||||
@@ -123,6 +124,7 @@ namespace BlackGui
|
||||
{
|
||||
this->m_overlayMessages = new COverlayMessages(inner.width(), inner.height(), this);
|
||||
this->m_overlayMessages->addShadow();
|
||||
this->m_overlayMessages->showKillButton(m_showKillButton);
|
||||
}
|
||||
|
||||
Q_ASSERT(this->m_overlayMessages);
|
||||
|
||||
Reference in New Issue
Block a user