| 1334 | } |
| 1335 | |
| 1336 | void ChatRootView::compressCurrentChat() |
| 1337 | { |
| 1338 | if (m_chatCompressor->isCompressing()) { |
| 1339 | m_lastErrorMessage = tr("Compression is already in progress"); |
| 1340 | emit lastErrorMessageChanged(); |
| 1341 | return; |
| 1342 | } |
| 1343 | |
| 1344 | if (m_recentFilePath.isEmpty()) { |
| 1345 | m_lastErrorMessage = tr("No chat file to compress. Please save the chat first."); |
| 1346 | emit lastErrorMessageChanged(); |
| 1347 | return; |
| 1348 | } |
| 1349 | |
| 1350 | autosave(); |
| 1351 | |
| 1352 | m_chatCompressor->startCompression(m_recentFilePath, m_chatModel); |
| 1353 | } |
| 1354 | |
| 1355 | void ChatRootView::cancelCompression() |
| 1356 | { |
nothing calls this directly
no test coverage detected