FIX: can not save project when modify bed type in the scene

Change-Id: Iaea1bef142edcf0c68a64cfa1f3b1d309b96f251
This commit is contained in:
zhimin.zeng authored and Lane.Wei committed 2023-01-10 19:08:26 +08:00
1 parent 8183b7d333
commit e70253cf25
4 files changed
+12 -2

No files matched your search

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