Skip to content

Commit 62cd593

Browse files
authored
Merge pull request #5696 from Textualize/refresh-bug-fix
Refresh bug fix
2 parents 5c64352 + d1c5be8 commit 62cd593

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [3.0.1] - 2025-04-01
9+
10+
### Fixed
11+
12+
- Fixed issue with modal dialog not refreshing
13+
814
## [3.0.0] - 2025-03-27
915

1016
### Changed
@@ -2812,6 +2818,7 @@ https://textual.textualize.io/blog/2022/11/08/version-040/#version-040
28122818
- New handler system for messages that doesn't require inheritance
28132819
- Improved traceback handling
28142820

2821+
[3.0.1]: https://github.com/Textualize/textual/compare/v3.0.0...v3.0.1
28152822
[3.0.0]: https://github.com/Textualize/textual/compare/v2.1.2...v3.0.0
28162823
[2.1.2]: https://github.com/Textualize/textual/compare/v2.1.1...v2.1.2
28172824
[2.1.1]: https://github.com/Textualize/textual/compare/v2.1.0...v2.1.1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "textual"
3-
version = "3.0.0"
3+
version = "3.0.1"
44
homepage = "https://github.com/Textualize/textual"
55
repository = "https://github.com/Textualize/textual"
66
documentation = "https://textual.textualize.io/"

src/textual/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2687,6 +2687,7 @@ def push_screen(
26872687

26882688
if self._screen_stack:
26892689
self.screen.post_message(events.ScreenSuspend())
2690+
self.screen.refresh()
26902691
next_screen, await_mount = self._get_screen(screen)
26912692
try:
26922693
message_pump = active_message_pump.get()

src/textual/screen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ def _get_inline_height(self, size: Size) -> int:
13061306
inline_height = min(self.app.size.height, inline_height)
13071307
return inline_height
13081308

1309-
def _screen_resized(self, size: Size):
1309+
def _screen_resized(self, size: Size) -> None:
13101310
"""Called by App when the screen is resized."""
13111311
if self.stack_updates:
13121312
self._refresh_layout(size)

0 commit comments

Comments
 (0)