diff --git a/CLAUDE.md b/CLAUDE.md index da7f9fcb53..25aa516a56 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -42,7 +42,7 @@ cmake --build build/arm64 --config RelWithDebInfo --target all -- ### Building on Linux **Always use this command to build the project when testing build issues on Linux.** ```bash -cmake --build build/arm64 --config RelWithDebInfo --target all -- +cmake --build build --config RelWithDebInfo --target all -- ``` diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 40b6fd9be6..671d5674b6 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -10416,13 +10416,13 @@ void Plater::priv::set_project_name(const wxString& project_name) BOOST_LOG_TRIVIAL(trace) << __FUNCTION__ << __LINE__ << " project is:" << project_name; m_project_name = project_name; //update topbar title -#ifdef __WINDOWS__ - wxGetApp().mainframe->SetTitle(m_project_name + " - OrcaSlicer"); - wxGetApp().mainframe->topbar()->SetTitle(m_project_name); -#else +#ifdef __APPLE__ wxGetApp().mainframe->SetTitle(m_project_name); if (!m_project_name.IsEmpty()) wxGetApp().mainframe->update_title_colour_after_set_title(); +#else + wxGetApp().mainframe->SetTitle(m_project_name + " - OrcaSlicer"); + wxGetApp().mainframe->topbar()->SetTitle(m_project_name); #endif } @@ -10437,11 +10437,12 @@ void Plater::priv::update_title_dirty_status() else title = m_project_name; -#ifdef __WINDOWS__ - wxGetApp().mainframe->topbar()->SetTitle(title); +#ifdef __APPLE__ + wxGetApp().mainframe->SetTitle(title); + wxGetApp().mainframe->update_title_colour_after_set_title(); #else wxGetApp().mainframe->SetTitle(title); - wxGetApp().mainframe->update_title_colour_after_set_title(); + wxGetApp().mainframe->topbar()->SetTitle(title); #endif }