MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / openHooked

Method openHooked

src/filetree.cpp:204–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void FileTree::openHooked(FileTreeItem* item)
205{
206 if (!item) {
207 item = singleSelection();
208
209 if (!item) {
210 return;
211 }
212 }
213
214 if (item->isFromArchive() || item->isDirectory()) {
215 return;
216 }
217
218 const QString path = item->realPath();
219 const QFileInfo targetInfo(path);
220
221 m_core.processRunner()
222 .setFromFile(m_tree->window(), targetInfo)
223 .setHooked(true)
224 .setWaitForCompletion(ProcessRunner::TriggerRefresh)
225 .run();
226}
227
228void FileTree::preview(FileTreeItem* item)
229{

Callers

nothing calls this directly

Calls 4

isDirectoryMethod · 0.80
processRunnerMethod · 0.80
isFromArchiveMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected