Added SetLock() function for PrusaLockButton

This commit is contained in:
YuSanka 2019-01-09 08:48:25 +01:00
parent ab810f4b16
commit 6d7e2b2dd7
4 changed files with 15 additions and 2 deletions

View file

@ -2216,6 +2216,12 @@ void PrusaLockButton::OnButton(wxCommandEvent& event)
event.Skip();
}
void PrusaLockButton::SetLock(bool lock)
{
m_is_pushed = lock;
enter_button(true);
}
void PrusaLockButton::enter_button(const bool enter)
{
wxBitmap* icon = m_is_pushed ?