FIX: disable the bed_exclude_area

2. fix crash of ams item
3. fix crash in update_sync_status when ams is not calibrated
jira: STUDIO-8934

Change-Id: I4c8acd36e2f921d0750c23d2b8a1d65dfa6b241a
(cherry picked from commit 21865dc0558dd5019fa3e800b51e01a9c923fd82)
This commit is contained in:
zhimin.zeng
2024-12-24 16:37:50 +08:00
committed by Noisyfox
parent 916b94bd01
commit e5e121a036
2 changed files with 7 additions and 1 deletions

View File

@@ -2615,7 +2615,7 @@ void AMSPreview::doRender(wxDC &dc)
}
//single slot
else {
else if (m_amsinfo.cans.size() == 1) {
auto iter = m_amsinfo.cans[0];
dc.SetPen(wxPen(*wxTRANSPARENT_PEN));
dc.SetBrush(StateColor::darkModeColorFor(AMS_CONTROL_DEF_BLOCK_BK_COLOUR));