Commit ce75a603 authored by Berke Viktor's avatar Berke Viktor
Browse files

Limit the number of URLs to keep and add GUI options for it

parent dd7a82e3
......@@ -744,7 +744,7 @@ load_config (void)
prefs.input_tray_priv = prefs.input_tray_hilight = 1;
prefs.autodccsend = 2; /* browse mode */
prefs.url_grabber = 1;
prefs.url_grabber_limit = 0; /* 0 means unlimited for backcompat */
prefs.url_grabber_limit = 50; /* 0 means unlimited */
prefs.text_search_follow = 1;
#ifdef WIN32
prefs.identd = 1;
......
......@@ -489,6 +489,10 @@ static const setting logging_settings[] =
{ST_LABEL, N_("See the strftime manpage for details.")},
#endif
{ST_HEADER, N_("URL Grabber"),0,0,0},
{ST_TOGGLE, N_("Enable URL grabber"), P_OFFINTNL(url_grabber), 0, 0, 2},
{ST_NUMBER, N_("Maximum number of URLs:"), P_OFFINTNL(url_grabber_limit), 0, 0, 9999},
{ST_END, 0, 0, 0, 0, 0}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment