Skip to content

Commit

Permalink
schedule undo
Browse files Browse the repository at this point in the history
  • Loading branch information
Allie Crevier committed Mar 23, 2020
1 parent 1404773 commit e26c538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1359,8 +1359,8 @@ def on_star_update_failed(self, source_uuid: str, is_starred: bool) -> None:
"""
if self.source_uuid == source_uuid:
self.is_starred = is_starred
self.setChecked(self.is_starred)
self.pending_count = self.pending_count - 1
QTimer.singleShot(250, lambda: self.setChecked(self.is_starred))

@pyqtSlot(str)
def on_star_update_successful(self, source_uuid: str) -> None:
Expand Down

0 comments on commit e26c538

Please sign in to comment.