From 79555b06f65c21bfb5647dfa0783350486da5118 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Sat, 23 Sep 2023 07:31:28 -0400 Subject: [PATCH] fix: don't reuse text in qcollapsible --- src/superqt/collapsible/_collapsible.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/superqt/collapsible/_collapsible.py b/src/superqt/collapsible/_collapsible.py index c684c58c..7bd53c06 100644 --- a/src/superqt/collapsible/_collapsible.py +++ b/src/superqt/collapsible/_collapsible.py @@ -66,8 +66,7 @@ def __init__( def setText(self, text: str) -> None: """Set the text of the toggle button.""" - current = self._toggle_btn.text() - self._toggle_btn.setText(current + text) + self._toggle_btn.setText(text) def text(self) -> str: """Return the text of the toggle button."""