Mark unsaved project title with * (#5910)

* Mark unsaved project title with *
This commit is contained in:
Vovodroid authored and GitHub committed 2024-06-29 22:13:57 +08:00
1 parent b47810435a
commit 5ff93fe103
4 files changed
+35 -3

No files matched your search

+1 -2
View File
@@ -17,8 +17,7 @@ namespace GUI {
void ProjectDirtyStateManager::update_from_undo_redo_stack(bool dirty)
{
if (!m_plater_dirty)
m_plater_dirty = dirty;
m_plater_dirty = dirty;
if (const Plater *plater = wxGetApp().plater(); plater && wxGetApp().initialized())
wxGetApp().mainframe->update_title();
}