@@ -58,6 +58,7 @@ static struct ui_strings {
58
58
const char * native_colors ;
59
59
const char * autolog ;
60
60
const char * history_size ;
61
+ const char * notification_timeout ;
61
62
const char * show_typing_self ;
62
63
const char * show_typing_other ;
63
64
const char * show_welcome_msg ;
@@ -86,6 +87,7 @@ static struct ui_strings {
86
87
"native_colors" ,
87
88
"autolog" ,
88
89
"history_size" ,
90
+ "notification_timeout" ,
89
91
"show_typing_self" ,
90
92
"show_typing_other" ,
91
93
"show_welcome_msg" ,
@@ -114,6 +116,7 @@ static void ui_defaults(struct user_settings *settings)
114
116
settings -> bell_on_invite = 0 ;
115
117
settings -> colour_theme = DFLT_COLS ;
116
118
settings -> history_size = 700 ;
119
+ settings -> notification_timeout = 3000 ;
117
120
settings -> show_typing_self = SHOW_TYPING_ON ;
118
121
settings -> show_typing_other = SHOW_TYPING_ON ;
119
122
settings -> show_welcome_msg = SHOW_WELCOME_MSG_ON ;
@@ -372,6 +375,7 @@ int settings_load(struct user_settings *s, const char *patharg)
372
375
config_setting_lookup_bool (setting , ui_strings .show_connection_msg , & s -> show_connection_msg );
373
376
374
377
config_setting_lookup_int (setting , ui_strings .history_size , & s -> history_size );
378
+ config_setting_lookup_int (setting , ui_strings .notification_timeout , & s -> notification_timeout );
375
379
config_setting_lookup_int (setting , ui_strings .nodeslist_update_freq , & s -> nodeslist_update_freq );
376
380
config_setting_lookup_int (setting , ui_strings .autosave_freq , & s -> autosave_freq );
377
381
0 commit comments