From 66fff5df49520ac6e43f24aba3308f1c3e0ad205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Thu, 27 Jul 2017 23:10:42 +0200 Subject: Qt: Add preference for show file load time in the status bar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will leave more room for messages on smaller screens. Set the default OFF because this is probably only useful for developers. Group Status Bar settings in the Layout frame. Change-Id: Iea9a55b6c088aac10ee7680b1e8a882ed00c73be Reviewed-on: https://code.wireshark.org/review/22824 Petri-Dish: Stig Bjørlykke Reviewed-by: Anders Broman --- epan/prefs.c | 6 ++++++ epan/prefs.h | 1 + 2 files changed, 7 insertions(+) (limited to 'epan') diff --git a/epan/prefs.c b/epan/prefs.c index febd18e39d..72fad4d59e 100644 --- a/epan/prefs.c +++ b/epan/prefs.c @@ -3300,6 +3300,11 @@ prefs_register_modules(void) "Show selected packet in the Status Bar", &prefs.gui_qt_show_selected_packet); + prefs_register_bool_preference(gui_layout_module, "show_file_load_time.enabled", + "Show file load time in the Status Bar", + "Show file load time in the Status Bar", + &prefs.gui_qt_show_file_load_time); + prefs_register_bool_preference(gui_module, "packet_editor.enabled", "Enable Packet Editor", "Enable Packet Editor (Experimental)", @@ -4048,6 +4053,7 @@ pre_init_prefs(void) prefs.gui_qt_packet_list_separator = FALSE; prefs.gui_qt_show_selected_packet = FALSE; + prefs.gui_qt_show_file_load_time = FALSE; if (prefs.col_list) { free_col_info(prefs.col_list); diff --git a/epan/prefs.h b/epan/prefs.h index 81d441abf9..5411362391 100644 --- a/epan/prefs.h +++ b/epan/prefs.h @@ -228,6 +228,7 @@ typedef struct _e_prefs { gboolean unknown_colorfilters; /* Warn when saving unknown or obsolete color filters. */ gboolean gui_qt_packet_list_separator; gboolean gui_qt_show_selected_packet; + gboolean gui_qt_show_file_load_time; gboolean gui_packet_editor; /* Enable Packet Editor */ elide_mode_e gui_packet_list_elide_mode; gboolean gui_packet_list_show_related; -- cgit v1.2.3