mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX: fix crash when set empty project name on mac
Change-Id: I656e6281f80bee9e06894a62f3ab6bb1316373ac Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
64fb6e7a24
commit
b575e21ae1
2 changed files with 3 additions and 2 deletions
|
@ -5591,7 +5591,8 @@ void Plater::priv::set_project_name(const wxString& project_name)
|
|||
wxGetApp().mainframe->topbar()->SetTitle(m_project_name);
|
||||
#else
|
||||
wxGetApp().mainframe->SetTitle(m_project_name);
|
||||
wxGetApp().mainframe->update_title_colour_after_set_title();
|
||||
if (!m_project_name.IsEmpty())
|
||||
wxGetApp().mainframe->update_title_colour_after_set_title();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue