Browse Source

Inform user when updates are disabled

doc-issue-template
MrS0m30n3 6 years ago
parent
commit
fc82b9a858
1 changed files with 6 additions and 1 deletions
  1. 7
      youtube_dl_gui/mainframe.py

7
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.

Loading…
Cancel
Save