mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Default autoping to 1 minute #541
This commit is contained in:
parent
fb8b223876
commit
84a8da7741
@ -281,7 +281,11 @@ prefs_set_reconnect(gint value)
|
||||
gint
|
||||
prefs_get_autoping(void)
|
||||
{
|
||||
return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "autoping", NULL);
|
||||
if (!g_key_file_has_key(prefs, PREF_GROUP_CONNECTION, "autoping", NULL)) {
|
||||
return 60;
|
||||
} else {
|
||||
return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "autoping", NULL);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user