Fix reading and storing DPI in config settings
Fixes #328 Fixes #356 Fixes #545
This commit is contained in:
parent
c799e038de
commit
a868b477e1
|
@ -356,6 +356,8 @@ class ChoicesValidator(object):
|
|||
else:
|
||||
if isinstance(new_value, int):
|
||||
choice = self.choices[new_value]
|
||||
elif int(new_value) in self.choices:
|
||||
choice = self.choices[int(new_value)]
|
||||
elif new_value in self.choices:
|
||||
choice = self.choices[new_value]
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue