Skip to content

Commit

Permalink
added icon to report message, errors should now be more visible (see …
Browse files Browse the repository at this point in the history
…github.com/ilstam/issues/64)
  • Loading branch information
l-koehler committed Jan 5, 2024
1 parent 6540d70 commit 7d62792
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ffconverter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# version
__major__ = 2
__minor__ = 1
__patch__ = 2
__patch__ = 3
__prerelease__ = "" # alpha, beta, rc etc.

# package information
Expand Down
6 changes: 6 additions & 0 deletions ffconverter/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ def manage_conversions(self):
sum_files = self.ok + self.error
msg = QMessageBox(self)
msg.setStandardButtons(QMessageBox.Ok)
if self.error:
# not all files have been converted
msg.setIcon(QMessageBox.Critical)
else:
# all files have been converted
msg.setIcon(QMessageBox.Information)
msg.setWindowTitle(self.tr("Report"))
msg.setText(self.tr("Converted: {0}/{1}".format(self.ok,sum_files)))
msg.setModal(False)
Expand Down

0 comments on commit 7d62792

Please sign in to comment.