From aefcdbba7ad1f03bd39ecc59494feb4c2f99c25e Mon Sep 17 00:00:00 2001 From: Samuel Kacer Date: Thu, 21 Dec 2023 15:31:23 +0000 Subject: [PATCH] Add comments explaning status bar search --- addon/appModules/idea64.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addon/appModules/idea64.py b/addon/appModules/idea64.py index 405dcaf..41f14b5 100644 --- a/addon/appModules/idea64.py +++ b/addon/appModules/idea64.py @@ -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