Fix "Show Details" not changing to "Hide Details" when expanding error

This commit is contained in:
Isaiah Odhner 2023-09-15 20:36:07 -04:00
parent 0c44759b28
commit 7a13659d48
3 changed files with 298 additions and 297 deletions

View File

@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed behavior of Free-Form Select tool when melding with the canvas, when the selection was off-screen to the left or top (i.e. with negative coordinates).
- Fixed Polygon tool closing the polygon when clicking quickly but moving between clicks, detected as a double-click.
- In-progress curves/polygons are now re-colored immediately when a color is selected, instead of only when mousing over the canvas.
- Fixed "Show Details" button label not changing to "Hide Details" when clicked, in error message dialogs.
## [0.2.0] - 2023-09-05

View File

@ -493,7 +493,7 @@ class MessageBox(DialogWindow):
"""Toggle the visibility of the error details."""
self.details_widget.display = not self.details_widget.display
button_text = _("Hide Details") if self.details_widget.display else _("Show Details")
self.details_button.update(button_text)
self.details_button.label = button_text
def on_mount(self):
"""Called when the window is mounted."""

File diff suppressed because one or more lines are too long