mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Added SetLock() function for PrusaLockButton
This commit is contained in:
@@ -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 ?
|
||||
|
||||
Reference in New Issue
Block a user