Skip to content

Commit

Permalink
Renaming was_cancelled function
Browse files Browse the repository at this point in the history
  • Loading branch information
Abo-Omar-74 authored and vhosouza committed Jul 15, 2024
1 parent 6ae2d80 commit 9a3a122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invesalius/gui/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6727,11 +6727,11 @@ def __init__(self, parent, title="Progress Dialog", msg="Initializing...", max_v
Publisher.subscribe(self.update, "Update Progress bar")
Publisher.subscribe(self.close, "Close Progress bar")

def wasCancelled(self):
def was_cancelled(self):
return super().WasCancelled()

def update(self, value, msg=None):
if self.WasCancelled():
if self.was_cancelled():
return

if self.max_value is None:
Expand Down

0 comments on commit 9a3a122

Please sign in to comment.