Route app save decisions through app core
This commit is contained in:
@@ -617,25 +617,11 @@ kEventResult NodeCanvas::handle_event(Event* e)
|
||||
App::I->keys[(int)kKey::KeyShift] ? ActionManager::redo() : ActionManager::undo();
|
||||
if (ke->m_key == kKey::KeyS && App::I->keys[(int)kKey::KeyCtrl] && !App::I->keys[(int)kKey::KeyShift])
|
||||
{
|
||||
if (Canvas::I->m_newdoc)
|
||||
{
|
||||
App::I->dialog_save();
|
||||
}
|
||||
else if (Canvas::I->m_unsaved)
|
||||
{
|
||||
Canvas::I->project_save();
|
||||
}
|
||||
App::I->save_document(pp::app::DocumentSaveIntent::save);
|
||||
}
|
||||
if (ke->m_key == kKey::KeyS && App::I->keys[(int)kKey::KeyCtrl] && App::I->keys[(int)kKey::KeyShift])
|
||||
{
|
||||
if (Canvas::I->m_newdoc)
|
||||
{
|
||||
App::I->dialog_save();
|
||||
}
|
||||
else if (Canvas::I->m_unsaved)
|
||||
{
|
||||
App::I->dialog_save_ver();
|
||||
}
|
||||
App::I->save_document(pp::app::DocumentSaveIntent::save_dirty_version);
|
||||
}
|
||||
if (ke->m_key == kKey::KeyBracketLeft)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user