Skip to content

Commit e44402e

Browse files
authored
🐛 Support ida 9.2
1 parent d9e0f12 commit e44402e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

backends/ida/graffiti.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,13 @@ def bring_ida_to_foreground():
343343
# UnMinimize
344344
WindowMinimized = 0x00000001 # https://www.riverbankcomputing.com/static/Docs/PyQt5/api/qtcore/qt.html#WindowState
345345
cur_state = window.windowState()
346-
new_state = cur_state & (~WindowMinimized)
347-
window.setWindowState(new_state)
346+
if isinstance(cur_state, int):
347+
new_state = cur_state & (~WindowMinimized)
348+
window.setWindowState(new_state)
349+
else:
350+
# IDA 9.2
351+
from PySide6.QtCore import Qt
352+
window.setWindowState(cur_state & (~Qt.WindowState.WindowMinimized))
348353

349354
# Switch desktop / give keyboard control
350355

0 commit comments

Comments
 (0)