mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 10:47:16 +00:00
ENH: support AMS switching for A series; clean class AMSSetting
jira: [STUDIO-14068] [STUDIO-14330] Change-Id: I6281fbf56f3bf406ef28103998790a2a98c3f5c0 (cherry picked from commit 8ee02ec73076691c482ea6d089a49ea1c99ad10c)
This commit is contained in:
@@ -1636,9 +1636,6 @@ void AMSControl::auto_refill(wxCommandEvent& event)
|
||||
|
||||
void AMSControl::on_ams_setting_click(wxMouseEvent &event)
|
||||
{
|
||||
for (auto i = 0; i < m_ams_info.size(); i++) {
|
||||
if (m_ams_info[i].ams_id == m_current_ams) { m_ams_info[i].current_action = AMSAction::AMS_ACTION_CALI; }
|
||||
}
|
||||
post_event(SimpleEvent(EVT_AMS_SETTINGS));
|
||||
}
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ int AMSinfo::get_humidity_display_idx() const
|
||||
}
|
||||
}
|
||||
|
||||
assert(false && "Invalid AMS type for humidity display");
|
||||
//assert(false && "Invalid AMS type for humidity display");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -75,3 +75,8 @@ void AnimaIcon::Enable()
|
||||
{
|
||||
if (m_bitmap) { m_bitmap->SetBitmap(m_image_enable); }
|
||||
}
|
||||
|
||||
bool AnimaIcon::IsRunning() const
|
||||
{
|
||||
return m_timer ? m_timer->IsRunning() : false;
|
||||
}
|
||||
@@ -13,6 +13,7 @@ public:
|
||||
void Play();
|
||||
void Stop();
|
||||
void Enable();
|
||||
bool IsPlaying() const { return IsRunning(); };
|
||||
bool IsRunning() const;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user