mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Redo of the project state, implementation of Undo/Redo stack compression
This commit is contained in:
committed by
Lukas Matena
parent
96f4d71c71
commit
1f3b272d77
@@ -620,7 +620,8 @@ void MainFrame::update_title()
|
||||
// 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());
|
||||
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()) ? "*" : "";
|
||||
wxString dirty_marker = m_plater->is_project_dirty() ? "*" : "";
|
||||
if (!dirty_marker.empty() || !project.empty()) {
|
||||
if (!dirty_marker.empty() && project.empty())
|
||||
project = _L("Untitled");
|
||||
|
||||
Reference in New Issue
Block a user