| 54 | } |
| 55 | |
| 56 | void ConfigManager::enableAutoSave() { |
| 57 | if (autoSaveEnabled) { return; } |
| 58 | autoSaveEnabled = true; |
| 59 | termFlag = false; |
| 60 | autoSaveThread = std::thread(&ConfigManager::autoSaveWorker, this); |
| 61 | } |
| 62 | |
| 63 | void ConfigManager::disableAutoSave() { |
| 64 | if (!autoSaveEnabled) { return; } |
no outgoing calls
no test coverage detected