From 8b6bc12a56487cbbdc9646c0cf915dde961ac6aa Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Thu, 15 May 2014 20:18:12 +0300 Subject: [PATCH] Fix LogPanel logger --- youtube_dl_gui/YoutubeDLGUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl_gui/YoutubeDLGUI.py b/youtube_dl_gui/YoutubeDLGUI.py index 72b7a47..e6d087f 100644 --- a/youtube_dl_gui/YoutubeDLGUI.py +++ b/youtube_dl_gui/YoutubeDLGUI.py @@ -439,7 +439,7 @@ class LogPanel(wx.Panel): ButtonsBox.Add(self.view_log_button, flag=wx.LEFT, border=20) MainBoxSizer.Add(ButtonsBox, flag=wx.ALIGN_CENTER_HORIZONTAL | wx.TOP, border=15) - if self.opt_manager.options['enable_log']: + if logger is not None: LogPathBox = wx.BoxSizer(wx.HORIZONTAL) LogPathBox.Add(wx.StaticText(self, label='Path: ' + self.get_path())) MainBoxSizer.Add(LogPathBox, flag=wx.ALIGN_CENTER_HORIZONTAL | wx.TOP, border=20)