FIX:remove play of icon

jira:[none]

Change-Id: I64aa43ddf3088bde9296385f36db3e2782d0c280
(cherry picked from commit db2d72cc42f564e37c1de13340555dd2ae745045)
This commit is contained in:
milk 2025-09-10 15:28:53 +08:00 committed by Noisyfox
parent 3480bf728d
commit 5cccdc7078
2 changed files with 9 additions and 1 deletions

View file

@ -55,9 +55,16 @@ AnimaIcon::AnimaIcon(wxWindow *parent, wxWindowID id, std::vector<std::string> i
SetMinSize(wxSize(FromDIP(m_size), FromDIP(m_size)));
Layout();
Fit();
Play();
}
AnimaIcon::~AnimaIcon()
{
if (m_timer) {
m_timer->Stop();
delete m_timer;
m_timer = nullptr;
}
}
void AnimaIcon::Play()
{

View file

@ -9,6 +9,7 @@ class AnimaIcon : public wxPanel
{
public:
AnimaIcon(wxWindow *parent, wxWindowID id, std::vector<std::string> img_list, std::string img_enable, int ivt = 1000);
~AnimaIcon();
void Play();
void Stop();