mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
renamed 'remove_report_items' tp 'remove_report_item'
This commit is contained in:
parent
5f6d6ca1b3
commit
8bb497e64b
1 changed files with 10 additions and 2 deletions
|
|
@ -290,7 +290,15 @@ class PublisherReportHandler:
|
|||
self._reports_by_id = reports_by_id
|
||||
return reports
|
||||
|
||||
def remove_report_items(self, item_id):
|
||||
def remove_report_item(self, item_id):
|
||||
"""Remove report item by id.
|
||||
|
||||
Remove from cache and also remove the file with the content.
|
||||
|
||||
Args:
|
||||
item_id (str): Report item id.
|
||||
"""
|
||||
|
||||
item = self._reports_by_id.get(item_id)
|
||||
if item:
|
||||
try:
|
||||
|
|
@ -439,7 +447,7 @@ class LoadedFilesModel(QtGui.QStandardItemModel):
|
|||
if not report_item:
|
||||
return
|
||||
|
||||
self._handler.remove_report_items(item_id)
|
||||
self._handler.remove_report_item(item_id)
|
||||
item = self._items_by_id.get(item_id)
|
||||
|
||||
parent = self.invisibleRootItem()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue