From e2c4ef5318f212853d7af8b51825a2d83fc40e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parodi=2C=20Eugenio=20=F0=9F=8C=B6?= Date: Tue, 9 Sep 2025 23:10:07 +0100 Subject: [PATCH] chore(tree): update event triggered by expandAll and collapseAll --- libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/treewidget.py | 2 ++ tools/ci/ci_tools/social/social_common.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/treewidget.py b/libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/treewidget.py index 522916c2..5498a10f 100644 --- a/libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/treewidget.py +++ b/libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/treewidget.py @@ -420,6 +420,7 @@ class TTkTreeWidget(TTkAbstractScrollView): self._rootItem.dataChanged.disconnect(self._refreshCache) self._rootItem.expandAll() self._rootItem.dataChanged.connect(self._refreshCache) + self._refreshCache() @pyTTkSlot() def collapseAll(self) -> None: @@ -429,6 +430,7 @@ class TTkTreeWidget(TTkAbstractScrollView): self._rootItem.dataChanged.disconnect(self._refreshCache) self._rootItem.collapseAll() self._rootItem.dataChanged.connect(self._refreshCache) + self._refreshCache() def mouseDoubleClickEvent(self, evt:TTkMouseEvent) -> bool: x,y = evt.x, evt.y diff --git a/tools/ci/ci_tools/social/social_common.py b/tools/ci/ci_tools/social/social_common.py index 8cf338a0..436b423d 100644 --- a/tools/ci/ci_tools/social/social_common.py +++ b/tools/ci/ci_tools/social/social_common.py @@ -36,21 +36,25 @@ _all_data:List[SocialData] = [ SocialData( name='pytermtk', link='https://github.com/ceccopierangiolieugenio/pyTermTk', + image='', discord_channel_id=1379381341145268305, ), SocialData( name='ttkode', link='https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/apps/ttkode', + image='', discord_channel_id=1379381474783924295, ), SocialData( name='dumbpainttool', link='https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/apps/dumbPaintTool', + image='', discord_channel_id=1379381571412430931, ), SocialData( name='tlogg', link='https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/apps/tlogg', + image='', discord_channel_id=1379381593378000916, ), ]