1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-13 08:24:27 +00:00

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
+6
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 ?