mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
Added SetLock() function for PrusaLockButton
This commit is contained in:
parent
ab810f4b16
commit
6d7e2b2dd7
4 changed files with 15 additions and 2 deletions
|
@ -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 ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue