Skip to content

Commit

Permalink
refactor(ida_plugin): remove upload feature
Browse files Browse the repository at this point in the history
  • Loading branch information
snie committed Jan 24, 2021
1 parent c654a96 commit caa7771
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions binaryai/ida/ida_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,21 +613,20 @@ def register_actions(self):
action.register_action(self.binaryai_callback, menupath=menupath)
action = UIManager.ActionHandler("BinaryAI:RetrieveFunction", "Retrieve function", "Ctrl+Shift+d", icon=99)
action.register_action(self.retrieve_callback, toolbar_name, menupath)
action = UIManager.ActionHandler("BinaryAI:UploadFunction", "Upload function", "", icon=97)
action.register_action(self.upload_callback, toolbar_name, menupath)
# action = UIManager.ActionHandler("BinaryAI:UploadFunction", "Upload function", "", icon=97)
# action.register_action(self.upload_callback, toolbar_name, menupath)
action = UIManager.ActionHandler("BinaryAI:MatchAll", "Match all functions", "", icon=188)
action.register_action(self.match_all_callback, toolbar_name, menupath)
action = UIManager.ActionHandler("BinaryAI:UploadAll", "Upload all functions", "", icon=88)
action.register_action(self.upload_all_callback, toolbar_name, menupath)
# action = UIManager.ActionHandler("BinaryAI:UploadAll", "Upload all functions", "", icon=88)
# action.register_action(self.upload_all_callback, toolbar_name, menupath)

apply_action = UIManager.ActionHandler("BinaryAI:Apply", "Apply")
apply_action.register_action(self.apply_callback)

match_action = UIManager.ActionHandler("BinaryAI:MatchSelected", "Match")
upload_action = UIManager.ActionHandler("BinaryAI:UploadSelected", "Upload")
# upload_action = UIManager.ActionHandler("BinaryAI:UploadSelected", "Upload")
revert_action = UIManager.ActionHandler("BinaryAI:RevertSelected", "Revert")
if match_action.register_action(self.selected_callback) and \
upload_action.register_action(self.selected_callback) and \
revert_action.register_action(self.selected_callback):
self.hooks.hook()
return True
Expand Down

0 comments on commit caa7771

Please sign in to comment.