Skip to content

Commit a9a4e66

Browse files
author
Papoteur
committed
Fix setting of a new value in user preferences
1 parent 2dffda9 commit a9a4e66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manatools/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,14 @@ def userPreferences(self) :
8282
self._load()
8383
return self._userPrefs
8484

85-
def userPrefSet(self, prefs):
85+
def userPrefSet(self, category, key, value):
8686
'''
8787
Set a value for a user's preference
8888
category is the first level of parameters
8989
key is a key for the parameter
9090
value is a string
9191
'''
92+
self._load()
9293
if category in self._userPrefs.keys():
9394
self._userPrefs[category][key] = value
9495
else:

0 commit comments

Comments
 (0)