Show tooltip only if there's something to show
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user