diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c index 94d456fcf5..91ffc0d238 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -2086,6 +2086,14 @@ bool do_set_setting(const unsigned char* string, void *variable, | |||
2086 | if ( function ) | 2086 | if ( function ) |
2087 | function(type_fromvoidptr(cb_data->type,variable)); | 2087 | function(type_fromvoidptr(cb_data->type,variable)); |
2088 | } | 2088 | } |
2089 | if (cb_data->type == INT) | ||
2090 | { | ||
2091 | if (oldvalue != *(int*)variable) | ||
2092 | settings_save(); | ||
2093 | } | ||
2094 | else if (oldvalue != *(bool*)variable) | ||
2095 | settings_save(); | ||
2096 | |||
2089 | return false; | 2097 | return false; |
2090 | } | 2098 | } |
2091 | bool set_int(const unsigned char* string, | 2099 | bool set_int(const unsigned char* string, |