Skip to content

Commit 8fa5640

Browse files
committed
ref(Widget): move class name into method call
1 parent 7c7706a commit 8fa5640

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/textual/widget.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -958,10 +958,9 @@ def set_loading(self, loading: bool) -> None:
958958
Args:
959959
loading: `True` to put the widget into a loading state, or `False` to reset the loading state.
960960
"""
961-
LOADING_INDICATOR_CLASS = "-textual-loading-indicator"
962961
if loading:
963962
loading_indicator = self.get_loading_widget()
964-
loading_indicator.add_class(LOADING_INDICATOR_CLASS)
963+
loading_indicator.add_class("-textual-loading-indicator")
965964
self._cover(loading_indicator)
966965
else:
967966
self._uncover()

0 commit comments

Comments
 (0)