Skip to content

Commit

Permalink
Fix status being read wile outside IntelliJ
Browse files Browse the repository at this point in the history
  • Loading branch information
SamKacer committed Apr 25, 2022
1 parent 64fc5c3 commit 77874b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ inside editor:
* alt + shift + F9: open run dialogue (note: if editor caret is on unit test, this will also autogenerate a run configuration for running that specific test case)

## Changelog
### Version 1.3.1
* fixed the status bar sometimes being read while not in IntelliJ
### Version 1.3.0
* added feature for automatically reading errors and other status bar changes (thanks to Thiago @thgcode for the contribution!)
* reading status bar with NVDA + I is much faster
Expand Down
9 changes: 4 additions & 5 deletions addon/appModules/idea64.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,13 @@ def script_readStatusBar(self, gesture):
ui.message(msg)

def getStatusBar(self, refresh: bool = False):
obj = api.getForegroundObject()
if obj is None or not obj.appModule.appName == "idea64":
# Ignore cases nvda is lost
return
if self.status and not refresh:
return self.status
else:
obj = api.getForegroundObject()
if obj is None or not obj.appModule.appName == "idea64":
# Ignore cases nvda is lost
return

obj = obj.simpleFirstChild
while obj is not None:
if obj.role == STATUSBAR:
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _(arg):
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description": _("Adds support for using IntelliJ with NVDA."),
# version
"addon_version": "1.3.0",
"addon_version": "1.3.1",
# Author(s)
"addon_author": "Samuel Kacer <[email protected]>",
# URL for the add-on documentation support
Expand Down

0 comments on commit 77874b8

Please sign in to comment.