| 26 | } |
| 27 | |
| 28 | bool ScriptApp::loadFile(QString fileName) |
| 29 | { |
| 30 | if (m_frmMain->m_senderState != frmMain::SenderState::SenderStopped) { |
| 31 | qInfo(scriptLogCategory) << "Can't load file while sender is streaming"; |
| 32 | return false; |
| 33 | } |
| 34 | |
| 35 | if (!m_frmMain->saveChanges(false)) return false; |
| 36 | |
| 37 | m_frmMain->loadFile(fileName); |
| 38 | |
| 39 | return true; |
| 40 | } |
| 41 | |
| 42 | bool ScriptApp::loadFile(QStringList data) |
| 43 | { |
nothing calls this directly
no test coverage detected