summaryrefslogtreecommitdiff
path: root/python/examples/triage
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2019-03-27 22:56:46 -0400
committerRusty Wagner <rusty@vector35.com>2019-03-27 23:02:34 -0400
commit02da29123186692f39381fa1f4d077c46e14f6c9 (patch)
tree13865d75cda98c40bc2a37ba8d18cf5a78bd07a4 /python/examples/triage
parentc6604a881d3febdf691d77561c62057bb09dac71 (diff)
Add API for adding a new type of file open button on the new tab page
Diffstat (limited to 'python/examples/triage')
-rw-r--r--python/examples/triage/files.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/examples/triage/files.py b/python/examples/triage/files.py
index 333bcf5a..95de6a31 100644
--- a/python/examples/triage/files.py
+++ b/python/examples/triage/files.py
@@ -2,7 +2,7 @@ import os
from PySide2.QtWidgets import QWidget, QTreeView, QFileSystemModel, QVBoxLayout, QMessageBox, QAbstractItemView
from PySide2.QtGui import QKeySequence
from PySide2.QtCore import QSettings
-from binaryninjaui import UIActionHandler, UIAction, Menu, FileContext, ContextMenuManager
+from binaryninjaui import UIActionHandler, UIAction, Menu, FileContext, ContextMenuManager, UIContext
from binaryninja.settings import Settings
@@ -138,3 +138,5 @@ UIAction.registerAction("Open Selected Files")
UIActionHandler.globalActions().bindAction("Open for Triage...", UIAction(openForTriage))
Menu.mainMenu("File").addAction("Open for Triage...", "Open")
+
+UIContext.registerFileOpenMode("Triage...", "Open file(s) for quick analysis in the Triage Summary view.", "Open for Triage...")