mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-02 19:36:08 -04:00
Skip updating or canceling items that haven't been added
This commit is contained in:
parent
04e4385667
commit
02538520a2
1 changed files with 4 additions and 2 deletions
|
@ -355,12 +355,14 @@ class HistoryItemList(QtWidgets.QScrollArea):
|
|||
"""
|
||||
Update an item. Override this method.
|
||||
"""
|
||||
if id in self.items:
|
||||
self.items[id].update(data)
|
||||
|
||||
def cancel(self, id):
|
||||
"""
|
||||
Cancel an item. Override this method.
|
||||
"""
|
||||
if id in self.items:
|
||||
self.items[id].cancel()
|
||||
|
||||
def reset(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue