| 1559 | |
| 1560 | |
| 1561 | void MainWindow::autoSave() |
| 1562 | { |
| 1563 | if( !Engine::getSong()->isExporting() && |
| 1564 | !Engine::getSong()->isLoadingProject() && |
| 1565 | !RemotePluginBase::isMainThreadWaiting() && |
| 1566 | !QApplication::mouseButtons() && |
| 1567 | ( ConfigManager::inst()->value( "ui", |
| 1568 | "enablerunningautosave" ).toInt() || |
| 1569 | ! Engine::getSong()->isPlaying() ) ) |
| 1570 | { |
| 1571 | Engine::getSong()->saveProjectFile(ConfigManager::inst()->recoveryFile()); |
| 1572 | autoSaveTimerReset(); // Reset timer |
| 1573 | } |
| 1574 | else |
| 1575 | { |
| 1576 | // try again in 10 seconds |
| 1577 | if( getAutoSaveTimerInterval() != m_autoSaveShortTime ) |
| 1578 | { |
| 1579 | autoSaveTimerReset( m_autoSaveShortTime ); |
| 1580 | } |
| 1581 | } |
| 1582 | } |
nothing calls this directly
no test coverage detected