Changed app title when the current project is modified and non yet named
This commit is contained in:
parent
fb1334af85
commit
1f8b134a77
1 changed files with 5 additions and 2 deletions
|
@ -618,8 +618,11 @@ void MainFrame::update_title()
|
||||||
// Don't try to remove the extension, it would remove part of the file name after the last dot!
|
// 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());
|
wxString project = from_path(into_path(m_plater->get_project_filename()).filename());
|
||||||
wxString dirty_marker = (!m_plater->model().objects.empty() && m_plater->is_project_dirty()) ? "*" : "";
|
wxString dirty_marker = (!m_plater->model().objects.empty() && m_plater->is_project_dirty()) ? "*" : "";
|
||||||
if (!dirty_marker.empty() || !project.empty())
|
if (!dirty_marker.empty() || !project.empty()) {
|
||||||
title = dirty_marker + project + " - ";
|
if (!dirty_marker.empty() && project.empty())
|
||||||
|
project = _("Untitled");
|
||||||
|
title = dirty_marker + project + " - ";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string build_id = wxGetApp().is_editor() ? SLIC3R_BUILD_ID : GCODEVIEWER_BUILD_ID;
|
std::string build_id = wxGetApp().is_editor() ? SLIC3R_BUILD_ID : GCODEVIEWER_BUILD_ID;
|
||||||
|
|
Loading…
Reference in a new issue