Show error dialog for invalid URLs in GUI

Replaces status label updates with QMessageBox warnings for invalid video URLs in the main UI. Adds 'error_title' translation key to all supported languages for consistent error dialog titles.
This commit is contained in:
oop7
2025-10-31 17:54:02 +02:00
parent 97aaa16cc4
commit 32c2d899ba
15 changed files with 16 additions and 2 deletions
+2 -2
View File
@@ -711,7 +711,7 @@ class YTSageApp(QMainWindow, FormatTableMixin, VideoInfoMixin): # Inherit from
# Validate URL before processing
is_valid, error_message = validate_video_url(url)
if not is_valid:
self.signals.update_status.emit(error_message)
QMessageBox.warning(self, _("main_ui.error_title"), error_message)
return
self.signals.update_status.emit(_("main_ui.analyzing_preparing"))
@@ -798,7 +798,7 @@ class YTSageApp(QMainWindow, FormatTableMixin, VideoInfoMixin): # Inherit from
# Validate URL before starting download
is_valid, error_message = validate_video_url(url)
if not is_valid:
self.status_label.setText(error_message)
QMessageBox.warning(self, _("main_ui.error_title"), error_message)
return
# Get selected format