-
-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace boolean gui.IsInMessageBox with function gui.message.isModalM…
…essageBoxActive (#13376) Relates to #13007, as the new design should be backwards compatible, we can implement the API changes as-is for 2022.1. Follow up to the API proposed in #12984 Summary of the issue: The API for gui.message had not yet been determined for 2022.1, as per #13007. As the future API is intended to be backwards compatible, this PR commits to the API proposed in #12984. Description of how this pull request fixes the issue: gui.IsInMessageBox was a boolean, this has been replaced by a function gui.message.isModalMessageBoxActive, which tracks if a messageBox is open in a safer manner. Changes logic gui/message.py to be safer with locking and handling errors.
- Loading branch information
Showing
4 changed files
with
47 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters