Skip to content

Commit

Permalink
Fix deprecated PySide6 use in Binja plugin (#58)
Browse files Browse the repository at this point in the history
* fix deprecated pyside 6 usage

* bump

* Update old strings
  • Loading branch information
mahaloz authored Feb 27, 2023
1 parent 61544fd commit 4893337
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion decomp2dbg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "3.3.0"
__version__ = "3.3.1"

try:
from .clients.client import DecompilerClient
Expand Down
10 changes: 5 additions & 5 deletions decompilers/d2d_binja/d2d_binja.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ConfigDialog(QDialog):
def __init__(self, bv, parent=None):
super().__init__(parent)
self.bv = bv
self.setWindowTitle("Configure Decomp2DBG")
self.setWindowTitle("Configure decomp2dbg")
self._main_layout = QVBoxLayout()
self._host_edit = None # type:QLineEdit
self._port_edit = None # type:QLineEdit
Expand Down Expand Up @@ -111,7 +111,7 @@ def _on_ok_clicked(self):
try:
t.start()
except Exception as e:
QMessageBox(self).critical(None, "Error starting Decomp2GEF Server", str(e))
QMessageBox(self).critical(None, "Error starting decomp2dbg Server", str(e))
traceback.print_exc()
return

Expand All @@ -131,14 +131,14 @@ def __init__(self):

def _init_ui(self):
# config dialog
configure_d2d_id = "Decomp2GDBG: Configure"
UIAction.registerAction(configure_d2d_id, QKeySequence(Qt.CTRL + Qt.SHIFT + Qt.Key_D))
configure_d2d_id = "decomp2dbg: Configure..."
UIAction.registerAction(configure_d2d_id, QKeySequence(Qt.CTRL | Qt.SHIFT | Qt.Key_D))
UIActionHandler.globalActions().bindAction(
configure_d2d_id, UIAction(self._launch_config)
)

target_menu = "Tools" if int(core_version()[4:][:4]) < 3505 else "Plugins"
Menu.mainMenu(target_menu).addAction(configure_d2d_id, "Decomp2DBG")
Menu.mainMenu(target_menu).addAction(configure_d2d_id, "decomp2dbg")

def _launch_config(self, bn_context):
bv = bn_context.binaryView
Expand Down

0 comments on commit 4893337

Please sign in to comment.