From 2f164140cd144ca912a18dc5d0a508225ec6e0f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noelia=20Ruiz=20Mart=C3=ADnez?= Date: Sun, 12 Jan 2025 06:45:38 +0100 Subject: [PATCH 1/2] Fix typo in _modalDialogOpenCallback method --- source/gui/blockAction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/blockAction.py b/source/gui/blockAction.py index a7fa1e6094e..9c4248e0005 100644 --- a/source/gui/blockAction.py +++ b/source/gui/blockAction.py @@ -35,7 +35,7 @@ def _modalDialogOpenCallback(): from gui.message import MessageDialog if MessageDialog.blockingInstancesExist(): - MessageDialog.FocusBlockingInstances() + MessageDialog.focusBlockingInstances() @dataclass From 594f73b7c1b5902c1c4c933d21c8d65ab4057461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noelia=20Ruiz=20Mart=C3=ADnez?= Date: Sun, 12 Jan 2025 06:49:49 +0100 Subject: [PATCH 2/2] Developer guide: fix capitalization for ReturnCode in confirm meth of MessageDialog documentation --- projectDocs/dev/developerGuide/developerGuide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projectDocs/dev/developerGuide/developerGuide.md b/projectDocs/dev/developerGuide/developerGuide.md index be23ea20c4f..d0b8c24712d 100644 --- a/projectDocs/dev/developerGuide/developerGuide.md +++ b/projectDocs/dev/developerGuide/developerGuide.md @@ -1673,5 +1673,5 @@ The following convenience class methods are provided (keyword arguments for over | Method | Buttons | Return values | |---|---|---| | `alert` | OK (`okLabel`) | `None` | -| `confirm` | OK (`okLabel`) and Cancel (`cancelLabel`) | `ReturnCode.OK` or `ReturnCode.Cancel` | +| `confirm` | OK (`okLabel`) and Cancel (`cancelLabel`) | `ReturnCode.OK` or `ReturnCode.CANCEL` | | `ask` | Yes (`yesLabel`), No (`noLabel`) and Cancel (`cancelLabel`) | `ReturnCode.YES`, `ReturnCode.NO` or `ReturnCode.CANCEL` |