Skip to content

Commit

Permalink
Add comments explaning status bar search
Browse files Browse the repository at this point in the history
  • Loading branch information
SamKacer committed Dec 21, 2023
1 parent f49cab4 commit aefcdbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addon/appModules/idea64.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,14 @@ def getStatusBar(self, refresh: bool = False):
else:
obj = obj.simpleFirstChild
while obj is not None:
# This first searching pattern is for IntelliJ post v2023
if obj.name == "Status Bar":
child = obj.simpleFirstChild
if child.role == STATUSBAR:
obj = child
self.status = obj
break
# this second searching pattern is for IntelliJ pre v2023
if obj.role == STATUSBAR:
self.status = obj
break
Expand Down

0 comments on commit aefcdbb

Please sign in to comment.