Show tooltip only if there's something to show

This commit is contained in:
DarkPhoenix
2019-05-04 02:43:33 +03:00
parent 8222686dda
commit 013a2264c0

View File

@@ -100,7 +100,8 @@ class CopySelectDialog(wx.Dialog):
for optId, optName, optDesc, _ in formatOptions:
checkbox = wx.CheckBox(self, -1, optName)
checkbox.SetToolTip(wx.ToolTip(optDesc))
if optDesc:
checkbox.SetToolTip(wx.ToolTip(optDesc))
self.options[formatId][optId] = checkbox
if self.settings['options'].get(formatId, {}).get(optId, defaultFormatOptions.get(formatId, {}).get(optId)):
checkbox.SetValue(True)