summaryrefslogtreecommitdiff
path: root/ui/recent.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/recent.c')
-rw-r--r--ui/recent.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/recent.c b/ui/recent.c
index ca4fb7d51f..2633ac92cf 100644
--- a/ui/recent.c
+++ b/ui/recent.c
@@ -69,6 +69,7 @@
#define RECENT_GUI_FILEOPEN_REMEMBERED_DIR "gui.fileopen_remembered_dir"
#define RECENT_GUI_CONVERSATION_TABS "gui.conversation_tabs"
#define RECENT_GUI_ENDPOINT_TABS "gui.endpoint_tabs"
+#define RECENT_GUI_RLC_PDUS_FROM_MAC_FRAMES "gui.rlc_pdus_from_mac_frames"
#define RECENT_GUI_GEOMETRY "gui.geom."
@@ -800,6 +801,11 @@ write_profile_recent(void)
fprintf(rf, RECENT_GUI_ENDPOINT_TABS ": %s\n", string_list);
g_free(string_list);
+ fprintf(rf, "\n# For RLC stats, whether to use RLC PDUs found inside MAC frames.\n");
+ fprintf(rf, "# TRUE or FALSE (case-insensitive).\n");
+ fprintf(rf, RECENT_GUI_RLC_PDUS_FROM_MAC_FRAMES ": %s\n",
+ recent.gui_rlc_use_pdus_from_mac == TRUE ? "TRUE" : "FALSE");
+
if (get_last_open_dir() != NULL) {
fprintf(rf, "\n# Last directory navigated to in File Open dialog.\n");
@@ -1038,6 +1044,13 @@ read_set_recent_pair_static(gchar *key, const gchar *value,
recent.conversation_tabs = prefs_get_string_list(value);
} else if (strcmp(key, RECENT_GUI_ENDPOINT_TABS) == 0) {
recent.endpoint_tabs = prefs_get_string_list(value);
+ } else if (strcmp(key, RECENT_GUI_RLC_PDUS_FROM_MAC_FRAMES) == 0) {
+ if (g_ascii_strcasecmp(value, "true") == 0) {
+ recent.gui_rlc_use_pdus_from_mac = TRUE;
+ }
+ else {
+ recent.gui_rlc_use_pdus_from_mac = FALSE;
+ }
} else if (strcmp(key, RECENT_KEY_COL_WIDTH) == 0) {
col_l = prefs_get_string_list(value);
if (col_l == NULL)