Skip to content

Commit e8000b0

Browse files
authored
SG-6836: [minor] Implements a hard_refresh method on the publish type model.
This works in conjunction with additional changes in tk-framework-shotgunutils to fix the reload menu command for loader2.
1 parent 4ad2a30 commit e8000b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

python/tk_multi_loader/model_publishtype.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,13 @@ def set_active_types(self, type_aggregates):
205205

206206
# and ask the model to resort itself
207207
self.sort(0)
208+
209+
def hard_refresh(self):
210+
"""
211+
Clears any caches on disk, then refreshes the data.
212+
"""
213+
super(SgPublishTypeModel, self).hard_refresh()
214+
self._load_external_data()
208215

209216
############################################################################################
210217
# subclassed methods

0 commit comments

Comments
 (0)