ev.params.shift();\r
\r
value = ev.params.join(' ');\r
+\r
+ // If we're setting a true boolean value..\r
+ if (value === 'true')\r
+ value = true;\r
+\r
+ // If we're setting a false boolean value..\r
+ if (value === 'false')\r
+ value = false;\r
+\r
+ // If we're setting a number..\r
+ if (parseInt(value, 10).toString() === value)\r
+ value = parseInt(value, 10);\r
+\r
_kiwi.global.settings.set(setting, value);\r
}\r
\r
// Read the value to the user\r
- _kiwi.app.panels.active.addMsg('', setting + ' = ' + _kiwi.global.settings.get(setting));\r
+ _kiwi.app.panels.active.addMsg('', setting + ' = ' + _kiwi.global.settings.get(setting).toString());\r
});\r
\r
\r