Do not restore graph type selected last time

This commit is contained in:
DarkPhoenix
2019-07-06 01:02:18 +03:00
parent 53de46bab7
commit 389b5d57aa
4 changed files with 2 additions and 6 deletions

View File

@@ -33,13 +33,11 @@ class FitGraph(metaclass=ABCMeta):
# UI stuff
views = []
viewMap = {}
viewIndexMap = {}
@classmethod
def register(cls):
FitGraph.views.append(cls)
FitGraph.viewMap[cls.internalName] = cls
FitGraph.viewIndexMap[cls.internalName] = FitGraph.views.index(cls)
def __init__(self):
# Format: {(fit ID, target type, target ID): data}