File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1318,7 +1318,7 @@ def _get_inline_height(self, size: Size) -> int:
13181318
13191319 def _screen_resized (self , size : Size ) -> None :
13201320 """Called by App when the screen is resized."""
1321- if self .stack_updates :
1321+ if self .stack_updates and self . is_attached :
13221322 self ._refresh_layout (size )
13231323
13241324 def _on_screen_resume (self ) -> None :
@@ -1327,6 +1327,7 @@ def _on_screen_resume(self) -> None:
13271327 self .remove_class (self .app .SUSPENDED_SCREEN_CLASS )
13281328
13291329 self .stack_updates += 1
1330+
13301331 self .app ._refresh_notifications ()
13311332 size = self .app .size
13321333
@@ -1349,8 +1350,6 @@ def _on_screen_resume(self) -> None:
13491350
13501351 def _on_screen_suspend (self ) -> None :
13511352 """Screen has suspended."""
1352- if not self .is_attached :
1353- return
13541353 if self .app .SUSPENDED_SCREEN_CLASS :
13551354 self .add_class (self .app .SUSPENDED_SCREEN_CLASS )
13561355 self .app ._set_mouse_over (None )
You can’t perform that action at this time.
0 commit comments