Skip to content

Commit

Permalink
string cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrieves committed Sep 23, 2023
1 parent 3580850 commit db5549c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tadpole.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,12 @@ def viewThumbnail(rom_path):
if newLogoFileName is None or newLogoFileName == "":
print("user cancelled image select")
return
failedConversions = tadpole_functions.addThumbnail(rom_path, drive, system, newLogoFileName, True)
if failedConversions == 0:
if tadpole_functions.addThumbnail(rom_path, drive, system, newLogoFileName, True):
QMessageBox.about(window, "Change ROM Logo", "ROM thumbnails successfully changed")
RunFrogTool(window.combobox_console.currentText())
return True
else:
QMessageBox.about(window, "Change ROM Cover", "Adding thumbnails completed, but " + str(failedConversions) + " failed to convert.")
QMessageBox.about(window, "Change ROM Cover", "Unable to convert thumbnail for ROM")
RunFrogTool(window.combobox_console.currentText())
return False

Expand Down

0 comments on commit db5549c

Please sign in to comment.