Change fix for invisible labels on linux

This commit is contained in:
DarkPhoenix
2019-04-13 14:26:05 +03:00
parent c94acd9718
commit 5f8ccb9831
2 changed files with 4 additions and 4 deletions

View File

@@ -278,16 +278,14 @@ class ResourcesViewFull(StatsView):
totalCalibrationPoints = value
labelTCP = label
# See #1877
shown = label.Shown
label.Show(True)
if isinstance(value, str):
label.SetLabel(value)
label.SetToolTip(wx.ToolTip(value))
else:
label.SetLabel(formatAmount(value, prec, lowest, highest))
label.SetToolTip(wx.ToolTip("%.1f" % value))
label.Show(shown)
# See issue #1877
label.InvalidateBestSize()
colorWarn = wx.Colour(204, 51, 51)
colorNormal = wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOWTEXT)