Handle python scripts via drag-and-drop to the window

This commit is contained in:
baldurk
2026-08-13 17:46:43 +01:00
parent c95a69c8a1
commit b846705c0b
+5
View File
@@ -729,6 +729,11 @@ void MainWindow::LoadFromFilename(const QString &filename, bool temporary)
{
LoadCapture(filename, m_Ctx.Config().DefaultReplayOptions, temporary, true);
}
else if(ext == lit("py"))
{
m_Ctx.ShowPythonShell();
m_Ctx.GetPythonShell()->LoadScriptFromFilename(filename);
}
else if(ext == lit("cap"))
{
OpenCaptureConfigFile(filename, false);