#7054 - Tech ENABLE_SAVE_COMMANDS_ALWAYS_ENABLED: enable command Save (CTRL+S) for untitled projects (automatically calls command Save As)
This commit is contained in:
parent
0b78e009b4
commit
b78d7cea28
@ -834,7 +834,7 @@ bool MainFrame::can_save() const
|
|||||||
#if ENABLE_SAVE_COMMANDS_ALWAYS_ENABLED
|
#if ENABLE_SAVE_COMMANDS_ALWAYS_ENABLED
|
||||||
return (m_plater != nullptr) &&
|
return (m_plater != nullptr) &&
|
||||||
!m_plater->canvas3D()->get_gizmos_manager().is_in_editing_mode(false) &&
|
!m_plater->canvas3D()->get_gizmos_manager().is_in_editing_mode(false) &&
|
||||||
!m_plater->get_project_filename().empty() && m_plater->is_project_dirty();
|
m_plater->is_project_dirty();
|
||||||
#else
|
#else
|
||||||
return (m_plater != nullptr) && !m_plater->model().objects.empty() &&
|
return (m_plater != nullptr) && !m_plater->model().objects.empty() &&
|
||||||
!m_plater->canvas3D()->get_gizmos_manager().is_in_editing_mode(false) &&
|
!m_plater->canvas3D()->get_gizmos_manager().is_in_editing_mode(false) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user