mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
FIX:remove play of icon
jira:[none] Change-Id: I64aa43ddf3088bde9296385f36db3e2782d0c280 (cherry picked from commit db2d72cc42f564e37c1de13340555dd2ae745045)
This commit is contained in:
@@ -55,9 +55,16 @@ AnimaIcon::AnimaIcon(wxWindow *parent, wxWindowID id, std::vector<std::string> i
|
|||||||
SetMinSize(wxSize(FromDIP(m_size), FromDIP(m_size)));
|
SetMinSize(wxSize(FromDIP(m_size), FromDIP(m_size)));
|
||||||
Layout();
|
Layout();
|
||||||
Fit();
|
Fit();
|
||||||
Play();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AnimaIcon::~AnimaIcon()
|
||||||
|
{
|
||||||
|
if (m_timer) {
|
||||||
|
m_timer->Stop();
|
||||||
|
delete m_timer;
|
||||||
|
m_timer = nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void AnimaIcon::Play()
|
void AnimaIcon::Play()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ class AnimaIcon : public wxPanel
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AnimaIcon(wxWindow *parent, wxWindowID id, std::vector<std::string> img_list, std::string img_enable, int ivt = 1000);
|
AnimaIcon(wxWindow *parent, wxWindowID id, std::vector<std::string> img_list, std::string img_enable, int ivt = 1000);
|
||||||
|
~AnimaIcon();
|
||||||
|
|
||||||
void Play();
|
void Play();
|
||||||
void Stop();
|
void Stop();
|
||||||
|
|||||||
Reference in New Issue
Block a user