Do not show resist column and mode picker when resists are ignored

This commit is contained in:
DarkPhoenix
2019-08-05 10:41:06 +03:00
parent deb772f0a7
commit 3c6071ad88
5 changed files with 22 additions and 6 deletions

View File

@@ -205,8 +205,12 @@ class GraphFrame(wx.Frame):
def OnGraphOptionChanged(self, event):
event.Skip()
self.ctrlPanel.Freeze()
if getattr(event, 'refreshAxeLabels', False):
self.ctrlPanel.refreshAxeLabels()
if getattr(event, 'refreshColumns', False):
self.ctrlPanel.refreshColumns()
self.ctrlPanel.Thaw()
self.clearCache(reason=GraphCacheCleanupReason.optionChanged)
self.draw()