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

Change-Id: Iaea1bef142edcf0c68a64cfa1f3b1d309b96f251
This commit is contained in:
zhimin.zeng 2023-01-03 13:04:32 +08:00 committed by Lane.Wei
parent 8183b7d333
commit e70253cf25
4 changed files with 12 additions and 2 deletions

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();
}