mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
Don't save prefs in incognito mode
This commit is contained in:
parent
543393f7f8
commit
bd6effd980
2 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
||||||
// Add the new setting to the session_arg_t; in ui.h
|
// Add the new setting to the session_arg_t; in ui.h
|
||||||
// Add the default value for the setting in the settings_load page below
|
// Add the default value for the setting in the settings_load page below
|
||||||
// Update the preferences_load_callback to load your setting into the stucture
|
// Update the preferences_load_callback to load your setting into the stucture
|
||||||
// Update the preferences_save_callback to enusre your setting gets saved when needed.
|
// Update the preferences_save_callback to ensure your setting gets saved when needed.
|
||||||
// use the preference as needed : session.<preference name>
|
// use the preference as needed : session.<preference name>
|
||||||
// Can use (session.preferences_loaded) to check if json settings file was used
|
// Can use (session.preferences_loaded) to check if json settings file was used
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
@ -1020,7 +1020,7 @@ int main(int argc, char *argv[]) {
|
||||||
// Save settings if not loaded from settings json file.
|
// Save settings if not loaded from settings json file.
|
||||||
// Doing this here will ensure other checks and updates are saved to over rule default
|
// Doing this here will ensure other checks and updates are saved to over rule default
|
||||||
// e.g. Linux color use check
|
// e.g. Linux color use check
|
||||||
if (!session.preferences_loaded) {
|
if ((!session.preferences_loaded) && (!session.incognito)) {
|
||||||
PrintAndLogEx(INFO, "Creating initial preferences file"); // json save reports file name, so just info msg here
|
PrintAndLogEx(INFO, "Creating initial preferences file"); // json save reports file name, so just info msg here
|
||||||
preferences_save(); // Save defaults
|
preferences_save(); // Save defaults
|
||||||
session.preferences_loaded = true;
|
session.preferences_loaded = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue