Skip to content

Commit

Permalink
Check status bar has expected role
Browse files Browse the repository at this point in the history
This is for future proofing in case IntelliJ changes layout yet again and the first child of "Status Bar" is something else now. I'd rather it would not find any status bar than to give something false.
  • Loading branch information
SamKacer committed Dec 21, 2023
1 parent 70f8355 commit f49cab4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions addon/appModules/idea64.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,11 @@ def getStatusBar(self, refresh: bool = False):
obj = obj.simpleFirstChild
while obj is not None:
if obj.name == "Status Bar":
obj = obj.simpleFirstChild
self.status = obj
break
child = obj.simpleFirstChild
if child.role == STATUSBAR:
obj = child
self.status = obj
break
if obj.role == STATUSBAR:
self.status = obj
break
Expand Down

0 comments on commit f49cab4

Please sign in to comment.