Skip to content

Commit e2c4ef5

Browse files
chore(tree): update event triggered by expandAll and collapseAll
1 parent 4acfedd commit e2c4ef5

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/treewidget.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ def expandAll(self) -> None:
420420
self._rootItem.dataChanged.disconnect(self._refreshCache)
421421
self._rootItem.expandAll()
422422
self._rootItem.dataChanged.connect(self._refreshCache)
423+
self._refreshCache()
423424

424425
@pyTTkSlot()
425426
def collapseAll(self) -> None:
@@ -429,6 +430,7 @@ def collapseAll(self) -> None:
429430
self._rootItem.dataChanged.disconnect(self._refreshCache)
430431
self._rootItem.collapseAll()
431432
self._rootItem.dataChanged.connect(self._refreshCache)
433+
self._refreshCache()
432434

433435
def mouseDoubleClickEvent(self, evt:TTkMouseEvent) -> bool:
434436
x,y = evt.x, evt.y

tools/ci/ci_tools/social/social_common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,25 @@ class SocialData():
3636
SocialData(
3737
name='pytermtk',
3838
link='https://github.com/ceccopierangiolieugenio/pyTermTk',
39+
image='',
3940
discord_channel_id=1379381341145268305,
4041
),
4142
SocialData(
4243
name='ttkode',
4344
link='https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/apps/ttkode',
45+
image='',
4446
discord_channel_id=1379381474783924295,
4547
),
4648
SocialData(
4749
name='dumbpainttool',
4850
link='https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/apps/dumbPaintTool',
51+
image='',
4952
discord_channel_id=1379381571412430931,
5053
),
5154
SocialData(
5255
name='tlogg',
5356
link='https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/apps/tlogg',
57+
image='',
5458
discord_channel_id=1379381593378000916,
5559
),
5660
]

0 commit comments

Comments
 (0)