From fc82b9a858f207314d71c56b9e261eff7cc594dc Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Sun, 14 Jan 2018 16:27:58 +0200 Subject: [PATCH] Inform user when updates are disabled --- youtube_dl_gui/mainframe.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index 728e0d6..e0aceaf 100644 --- a/youtube_dl_gui/mainframe.py +++ b/youtube_dl_gui/mainframe.py @@ -1036,7 +1036,12 @@ class MainFrame(wx.Frame): Currently there is not way to stop the update process. """ - self._update_youtubedl() + if self.opt_manager.options["disable_update"]: + self._create_popup(_("Updates are disabled for your system. Please use the system's package manager to update youtube-dl."), + self.INFO_LABEL, + wx.OK | wx.ICON_INFORMATION) + else: + self._update_youtubedl() def _on_options(self, event): """Event handler of the self._options_btn widget.