diff --git a/client/preferences.c b/client/preferences.c index 94b97666a..1f409f745 100644 --- a/client/preferences.c +++ b/client/preferences.c @@ -80,6 +80,7 @@ int preferences_save (void) { // Note sure if backup has value ? char backupFilename[500+sizeof(preferencesFilename)+10] = {0}; + PrintAndLogEx(INFO,"Saving preferences ..."); snprintf (backupFilename,sizeof(backupFilename)-1,"%s.bak",prefGetFilename()); if (fileExists (backupFilename)) { diff --git a/client/proxmark3.c b/client/proxmark3.c index 910d49327..b981d1758 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -948,5 +948,8 @@ int main(int argc, char *argv[]) { CloseProxmark(); } +#ifdef USE_PREFERENCE_FILE + preferences_save (); +#endif exit(EXIT_SUCCESS); }