mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Fixed update of the project name in the status line in case the name
of the project contains dots.
This commit is contained in:
@@ -143,7 +143,9 @@ void MainFrame::update_title()
|
|||||||
wxString title = wxEmptyString;
|
wxString title = wxEmptyString;
|
||||||
if (m_plater != nullptr)
|
if (m_plater != nullptr)
|
||||||
{
|
{
|
||||||
wxString project = from_path(into_path(m_plater->get_project_filename()).stem());
|
// m_plater->get_project_filename() produces file name including path, but excluding extension.
|
||||||
|
// Don't try to remove the extension, it would remove part of the file name after the last dot!
|
||||||
|
wxString project = from_path(into_path(m_plater->get_project_filename()).filename());
|
||||||
if (!project.empty())
|
if (!project.empty())
|
||||||
title += (project + " - ");
|
title += (project + " - ");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user