FIX:fixed jpeg pictures cannot be set as cover thumbnail

Change-Id: I35b5f4fd2ebd31cbd0812ef3111cc18152f24582
This commit is contained in:
tao wang 2023-02-09 11:43:25 +08:00 committed by Lane.Wei
parent 3f109501ba
commit 4fb94330f4
2 changed files with 5 additions and 1 deletions

View file

@ -492,6 +492,7 @@ void AuFile::on_set_cover()
thumbnail_img.SaveFile(encode_path(middle_img_path.c_str()));
}
wxGetApp().plater()->set_plater_dirty(true);
auto evt = wxCommandEvent(EVT_AUXILIARY_UPDATE_COVER);
evt.SetString(s_default_folders[m_type]);
evt.SetEventObject(m_parent);