MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / triggerAutoSave

Method triggerAutoSave

Engine/Project.cpp:719–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717}
718
719void
720Project::triggerAutoSave()
721{
722 ///Should only be called in the main-thread, that is upon user interaction.
723 assert( QThread::currentThread() == qApp->thread() );
724
725 if ( getApp()->isBackground() || !appPTR->isLoaded() || isProjectClosing() ) {
726 return;
727 }
728
729 if ( !hasProjectBeenSavedByUser() && !appPTR->getCurrentSettings()->isAutoSaveEnabledForUnsavedProjects() ) {
730 return;
731 }
732
733 {
734 QMutexLocker l(&_imp->isLoadingProjectMutex);
735 if (_imp->isLoadingProject) {
736 return;
737 }
738 }
739
740 _imp->autoSaveTimer->start( appPTR->getCurrentSettings()->getAutoSaveDelayMS() );
741}
742
743void
744Project::onAutoSaveTimerTriggered()

Callers 15

onOverlayPenUpMethod · 0.45
onOverlayKeyUpMethod · 0.45
undoMethod · 0.45
redoMethod · 0.45
evaluateMethod · 0.45
autoSaveAndRedrawMethod · 0.45
newHistogramHereMethod · 0.45
closeTabMethod · 0.45
splitInternalMethod · 0.45
moveTabMethod · 0.45
RemoveNodeCommandClass · 0.45

Calls 7

getAppFunction · 0.85
isLoadedMethod · 0.80
getCurrentSettingsMethod · 0.80
startMethod · 0.80
getAutoSaveDelayMSMethod · 0.80
isBackgroundMethod · 0.45

Tested by

no test coverage detected