diff options
| author | tassaron | 2017-06-08 16:50:48 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-08 16:50:48 -0400 |
| commit | bb1e54b31eb6157ef041764cfccd60484a0e02d8 (patch) | |
| tree | cbd2aed7edd1b6c429437929c03ec8cdb9c67e33 /components/original.py | |
| parent | 6079c4fd24aecf2ecfed0528c1427a74d596993f (diff) | |
saved preset titles, code clean-ups
componentList drag'n'drop disabled for now; will work on it in another branch
Diffstat (limited to 'components/original.py')
| -rw-r--r-- | components/original.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/original.py b/components/original.py index a2059d1..7873f43 100644 --- a/components/original.py +++ b/components/original.py @@ -38,7 +38,7 @@ class Component(__base__.Component): self.parent.drawPreview() def loadPreset(self, pr, presetName=None): - self.currentPreset = presetName + self.currentPreset = presetName if presetName else pr['preset'] self.page.lineEdit_visColor.setText('%s,%s,%s' % pr['visColor']) btnStyle = "QPushButton { background-color : %s; outline: none; }" \ % QColor(*pr['visColor']).name() @@ -47,6 +47,7 @@ class Component(__base__.Component): def savePreset(self): return { + 'preset': self.currentPreset, 'layout': self.layout, 'visColor': self.visColor, } |
