Skip to content

Commit

Permalink
Fix logged error when locking up the computer
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilleB79 committed Mar 28, 2024
1 parent 86b6cd5 commit 2b6bd64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/globalPlugins/Access8Math/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ def terminate(self):
gui.settingsDialogs.NVDASettingsDialog.categoryClasses.remove(MathReaderSettingsPanel)

def chooseNVDAObjectOverlayClasses(self, obj, clsList):
if obj.windowClassName == "wxWindowNR" and obj.role == ROLE_WINDOW and obj.name == _("Access8Math interaction window"):
if getattr(obj, 'windowClassName', None) == "wxWindowNR" and obj.role == ROLE_WINDOW and obj.name == _("Access8Math interaction window"):
clsList.insert(0, AppWindowRoot)
if obj.windowClassName == "Edit" and obj.role == ROLE_EDITABLETEXT:
if getattr(obj, 'windowClassName', None) == "Edit" and obj.role == ROLE_EDITABLETEXT:
clsList.insert(0, TextMathEditField)

def create_menu(self):
Expand Down

0 comments on commit 2b6bd64

Please sign in to comment.