diff options
| author | exislow <exislow@users.noreply.github.com> | 2024-03-22 18:19:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-22 18:19:49 +0100 |
| commit | efba6df1c541d51fe4478d66b98f6e24ce4d2295 (patch) | |
| tree | 60d929efa5569affd7a7f77170975f3d1c2da2c1 /tidal_dl_ng/dialog.py | |
| parent | 6c3ed1030876e1670f13c96c1beb036020203be7 (diff) | |
| parent | d47517dd4b8aebadaf941b55d0421d390588813c (diff) | |
| download | tidal-dl-ng-efba6df1c541d51fe4478d66b98f6e24ce4d2295.tar.gz | |
Merge pull request #68 from exislow/45-support-for-artist-download
45 support for artist download
Diffstat (limited to 'tidal_dl_ng/dialog.py')
| -rw-r--r-- | tidal_dl_ng/dialog.py | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/tidal_dl_ng/dialog.py b/tidal_dl_ng/dialog.py index 21d32d3..5a063d2 100644 --- a/tidal_dl_ng/dialog.py +++ b/tidal_dl_ng/dialog.py @@ -105,19 +105,18 @@ class DialogPreferences(QtWidgets.QDialog): def _init_signals(self): self.ui.cb_video_convert_mp4.stateChanged.connect(self.on_cb_video_convert_mp4) - def on_cb_video_convert_mp4(self, int): - if self.ui.cb_video_convert_mp4.isChecked(): - # Check if ffmpeg is in PATH otherwise show error message. - if not is_installed_ffmpeg(): - self.ui.cb_video_convert_mp4.setChecked(False) - self.ui.cb_video_convert_mp4.setCheckState(QtCore.Qt.CheckState.Unchecked) - QtWidgets.QMessageBox.critical( - self, - "FFmpeg not found!", - "Either FFmpeg is not installed on your computer or not set within " - "your PATH variable. You cannot activate this option until FFmpeg " - "is correctly installed and set to your environmental PATH variable.", - ) + def on_cb_video_convert_mp4(self, change_status: int): + # Check if ffmpeg is in PATH otherwise show error message. + if self.ui.cb_video_convert_mp4.isChecked() and not is_installed_ffmpeg(): + self.ui.cb_video_convert_mp4.setChecked(False) + self.ui.cb_video_convert_mp4.setCheckState(QtCore.Qt.CheckState.Unchecked) + QtWidgets.QMessageBox.critical( + self, + "FFmpeg not found!", + "Either FFmpeg is not installed on your computer or not set within " + "your PATH variable. You cannot activate this option until FFmpeg " + "is correctly installed and set to your environmental PATH variable.", + ) def _init_line_edit(self): self.parameters_line_edit = [ |
