FIX: [STUDIO-1094] windows task bar title

Change-Id: I99c943345013d97839178f36683d81979cf8e3f5
This commit is contained in:
chunmao.guo 2022-10-28 09:00:45 +08:00 committed by Lane.Wei
parent 808a82300a
commit ce818dd6d1

View file

@ -6094,10 +6094,10 @@ void Plater::priv::set_project_name(const wxString& project_name)
{
m_project_name = project_name;
//update topbar title
wxGetApp().mainframe->SetTitle(m_project_name);
#ifdef __WINDOWS__
wxGetApp().mainframe->topbar()->SetTitle(m_project_name);
#else
wxGetApp().mainframe->SetTitle(m_project_name);
if (!m_project_name.IsEmpty())
wxGetApp().mainframe->update_title_colour_after_set_title();
#endif