FIX: modify ui styles in media file panel

Change-Id: I064858975fc39618339cf4fe0e577fa3d2e5085f
This commit is contained in:
chunmao.guo 2022-09-02 10:58:00 +08:00 committed by Lane.Wei
parent dd0ccfb6e9
commit 63448d9126
4 changed files with 41 additions and 43 deletions

View file

@ -540,7 +540,10 @@ void PrinterFileSystem::SendChangedEvent(wxEventType type, size_t index, std::st
if (!str.empty())
event.SetString(wxString::FromUTF8(str.c_str()));
event.SetExtraLong(extra);
wxPostEvent(this, event);
if (wxThread::IsMain())
ProcessEventLocally(event);
else
wxPostEvent(this, event);
}
void PrinterFileSystem::DumpLog(Bambu_Session *session, int level, Bambu_Message const *msg)