aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_gui
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_gui')
-rw-r--r--hypervideo_gui/main_ui.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/hypervideo_gui/main_ui.py b/hypervideo_gui/main_ui.py
index 9eba119..ccbbf2d 100644
--- a/hypervideo_gui/main_ui.py
+++ b/hypervideo_gui/main_ui.py
@@ -97,7 +97,7 @@ class MainWindow(QMainWindow):
self.dl_proc.started.connect(lambda: self.dl_btn.setEnabled(False))
self.dl_proc.started.connect(lambda: self.fmts_btn.setEnabled(False))
self.dl_proc.started.connect(lambda: self.cxl_btn.setEnabled(True))
- self.dl_proc.finished.connect(lambda: self.show_msg("Download done!"))
+ self.dl_proc.finished.connect(self.msg_dl_finished)
self.dl_proc.finished.connect(lambda: self.dl_btn.setEnabled(True))
self.dl_proc.finished.connect(lambda: self.fmts_btn.setEnabled(True))
self.dl_proc.finished.connect(lambda: self.cxl_btn.setEnabled(False))
@@ -432,6 +432,18 @@ class MainWindow(QMainWindow):
except ValueError:
pass
+ def msg_dl_finished(self):
+ ''' Message finished download '''
+ self.pbar.setValue(100)
+
+ msg = QMessageBox()
+ msg.setWindowTitle('%s' % __title__)
+ msg.setText('Download done!')
+ msg.setIcon(QMessageBox.Information)
+ self.show()
+
+ msg.exec_()
+
def cancel_download(self):
''' Cancel download'''
if self.dl_proc.state() == QProcess.Running: