sync
This commit is contained in:
parent
d5cea2c041
commit
0b8e36f3c0
3 changed files with 2006 additions and 10 deletions
1984
logs/app.log
1984
logs/app.log
File diff suppressed because it is too large
Load diff
Binary file not shown.
|
|
@ -4307,16 +4307,28 @@ class DownloadMissingTracksModal(QDialog):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def on_all_downloads_complete(self):
|
def on_all_downloads_complete(self):
|
||||||
"""Handle completion of all downloads"""
|
"""Handle completion of all downloads"""
|
||||||
self.download_in_progress = False
|
self.download_in_progress = False
|
||||||
print("🎉 All downloads completed!")
|
print("🎉 All downloads completed!")
|
||||||
self.cancel_btn.hide()
|
self.cancel_btn.hide()
|
||||||
# --- FIX: The modal now stays open for manual correction. ---
|
|
||||||
# The process_finished signal is still emitted to unlock the main UI.
|
# The process_finished signal is still emitted to unlock the main UI.
|
||||||
self.process_finished.emit()
|
self.process_finished.emit()
|
||||||
QMessageBox.information(self, "Downloads Complete",
|
|
||||||
f"Completed downloading {self.successful_downloads}/{len(self.missing_tracks)} missing tracks!\n\nYou can now manually correct any failed downloads or close this window.")
|
# Determine the final message based on success or failure.
|
||||||
|
if self.permanently_failed_tracks:
|
||||||
|
final_message = f"Completed downloading {self.successful_downloads}/{len(self.missing_tracks)} missing tracks!\n\nYou can now manually correct any failed downloads or close this window."
|
||||||
|
|
||||||
|
# If there are failures, ensure the modal is visible and bring it to the front.
|
||||||
|
if self.isHidden():
|
||||||
|
self.show()
|
||||||
|
self.activateWindow()
|
||||||
|
self.raise_()
|
||||||
|
else:
|
||||||
|
final_message = f"Completed downloading {self.successful_downloads}/{len(self.missing_tracks)} missing tracks!\n\nAll tracks were downloaded successfully!"
|
||||||
|
|
||||||
|
QMessageBox.information(self, "Downloads Complete", final_message)
|
||||||
|
|
||||||
def on_cancel_clicked(self):
|
def on_cancel_clicked(self):
|
||||||
"""Handle Cancel button - cancels operations, emits finished signal, and closes modal."""
|
"""Handle Cancel button - cancels operations, emits finished signal, and closes modal."""
|
||||||
# --- FIX: The full cancellation logic is now centralized here. ---
|
# --- FIX: The full cancellation logic is now centralized here. ---
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue