| 186 | } |
| 187 | |
| 188 | void FileTreeTab::onOpen() |
| 189 | { |
| 190 | auto selection = singleSelection(); |
| 191 | if (!selection.isValid()) { |
| 192 | return; |
| 193 | } |
| 194 | |
| 195 | const auto path = m_fs->filePath(selection); |
| 196 | core() |
| 197 | .processRunner() |
| 198 | .setFromFile(parentWidget(), QFileInfo(path)) |
| 199 | .setHooked(false) |
| 200 | .setWaitForCompletion() |
| 201 | .run(); |
| 202 | } |
| 203 | |
| 204 | void FileTreeTab::onRunHooked() |
| 205 | { |
nothing calls this directly
no test coverage detected