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,6 +5591,7 @@ void Plater::priv::set_project_name(const wxString& project_name)
|
||||||
wxGetApp().mainframe->topbar()->SetTitle(m_project_name);
|
wxGetApp().mainframe->topbar()->SetTitle(m_project_name);
|
||||||
#else
|
#else
|
||||||
wxGetApp().mainframe->SetTitle(m_project_name);
|
wxGetApp().mainframe->SetTitle(m_project_name);
|
||||||
|
if (!m_project_name.IsEmpty())
|
||||||
wxGetApp().mainframe->update_title_colour_after_set_title();
|
wxGetApp().mainframe->update_title_colour_after_set_title();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
NSTextField* mainframe_text_field;
|
NSTextField* mainframe_text_field = nil;
|
||||||
|
|
||||||
bool mac_dark_mode()
|
bool mac_dark_mode()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue