| 1169 | } |
| 1170 | |
| 1171 | void Application::requestResumePwd(const ArgumentOccurrence &) |
| 1172 | { |
| 1173 | if (!findPwd(true)) { |
| 1174 | return; |
| 1175 | } |
| 1176 | if (m_connection.resumeDirectories(QStringList(m_pwd.dirObj->id))) { |
| 1177 | cerr << "Request resuming folder \"" << m_pwd.dirObj->path.toLocal8Bit().data() << "\" ..." << endl; |
| 1178 | connect(&m_connection, &SyncthingConnection::directoryResumeTriggered, this, &Application::handleResponse); |
| 1179 | m_preventDisconnect = true; |
| 1180 | m_expectedResponse = 1; |
| 1181 | return; |
| 1182 | } else { |
| 1183 | cerr << "Folder \"" << m_pwd.dirObj->path.toLocal8Bit().data() << " not paused" << endl; |
| 1184 | QCoreApplication::quit(); |
| 1185 | } |
| 1186 | } |
| 1187 | |
| 1188 | void Application::initDirCompletion(Argument &arg, const ArgumentOccurrence &) |
| 1189 | { |
nothing calls this directly
no test coverage detected