Update window utils

Remove useless replace
This commit is contained in:
angelblue05 2019-01-25 08:11:49 -06:00
parent 07723ad02b
commit f9db3c6134

View file

@ -51,7 +51,7 @@ def window(key, value=None, clear=False, window_id=10000):
key = key.replace('.bool', "") key = key.replace('.bool', "")
value = "true" if value else "false" value = "true" if value else "false"
window.setProperty(key.replace('.json', "").replace('.bool', ""), value) window.setProperty(key, value)
else: else:
result = window.getProperty(key.replace('.json', "").replace('.bool', "")) result = window.getProperty(key.replace('.json', "").replace('.bool', ""))