aboutsummaryrefslogtreecommitdiff
path: root/components/image.py
diff options
context:
space:
mode:
authortassaron2017-06-08 16:50:48 -0400
committertassaron2017-06-08 16:50:48 -0400
commitbb1e54b31eb6157ef041764cfccd60484a0e02d8 (patch)
treecbd2aed7edd1b6c429437929c03ec8cdb9c67e33 /components/image.py
parent6079c4fd24aecf2ecfed0528c1427a74d596993f (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/image.py')
-rw-r--r--components/image.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/image.py b/components/image.py
index 6ccddb6..441e0e1 100644
--- a/components/image.py
+++ b/components/image.py
@@ -49,11 +49,12 @@ class Component(__base__.Component):
return frame
def loadPreset(self, pr, presetName=None):
- self.currentPreset = presetName
+ self.currentPreset = presetName if presetName else pr['preset']
self.page.lineEdit_image.setText(pr['image'])
def savePreset(self):
return {
+ 'preset': self.currentPreset,
'image': self.imagePath,
}