mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
parent
9123675c9c
commit
816351d371
@ -252,7 +252,11 @@ prefs_get_priority(void)
|
|||||||
gint
|
gint
|
||||||
prefs_get_reconnect(void)
|
prefs_get_reconnect(void)
|
||||||
{
|
{
|
||||||
return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL);
|
if (!g_key_file_has_key(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL)) {
|
||||||
|
return 30;
|
||||||
|
} else {
|
||||||
|
return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user