Skip to content

Commit de6c3c1

Browse files
authored
Merge fd4ab54 into 53c8e10
2 parents 53c8e10 + fd4ab54 commit de6c3c1

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

source/gui/nvdaControls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ def _setSound(self, type):
291291
return
292292

293293
def _playSound(self):
294-
winsound.MessageBeep(self._soundID)
294+
if self._soundID is not None:
295+
winsound.MessageBeep(self._soundID)
295296

296297
def __init__(self, parent, title, message, dialogType=DIALOG_TYPE_STANDARD):
297298
DPIScaledDialog.__init__(self, parent, title=title)

user_docs/en/changes.t2t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,10 @@ Setting ``numCells`` is still supported for single line braille displays and ``n
192192
- Fixed bug where deleting git-tracked files during ``scons -c`` resulted in missing UIA COM interfaces on rebuild. (#7070, #10833, @hwf1324)
193193
- Fix a bug where some code changes were not detected when building ``dist``, that prevented a new build from being triggered.
194194
Now ``dist`` always rebuilds. (#13372, @hwf1324)
195+
- A ``gui.nvdaControls.MessageDialog`` with default type of standard, no longer throws a None conversion exception because no sound is assigned. (#16223, @XLTechie)
195196
-
196197

198+
197199
=== API Breaking Changes ===
198200
These are breaking API changes.
199201
Please open a GitHub issue if your Add-on has an issue with updating to the new API.

0 commit comments

Comments
 (0)