diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index b733e20..956d5ae 100644 --- a/youtube_dl_gui/mainframe.py +++ b/youtube_dl_gui/mainframe.py @@ -1496,6 +1496,8 @@ class ButtonsChoiceDialog(wx.Dialog): width, height = panel.GetBestSize() self.SetSize((width, height * 1.25)) + self.Center() + def _on_close(self, event): self.EndModal(event.GetEventObject().GetId())