Fix when item is removed from clipboard tray
This commit is contained in:
parent
7f8b000a92
commit
553709c869
@ -121,9 +121,7 @@ class ClipboardBox(hippo.CanvasBox):
|
|||||||
|
|
||||||
def _object_deleted_cb(self, cb_service, object_id):
|
def _object_deleted_cb(self, cb_service, object_id):
|
||||||
icon = self._icons[object_id]
|
icon = self._icons[object_id]
|
||||||
position = self.get_children().index(icon)
|
self._tray.remove_item(icon)
|
||||||
self.remove(icon)
|
|
||||||
|
|
||||||
del self._icons[object_id]
|
del self._icons[object_id]
|
||||||
logging.debug('ClipboardBox: ' + object_id + ' was deleted.')
|
logging.debug('ClipboardBox: ' + object_id + ' was deleted.')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user