In add_connection(), there’s an ugly hack for marking settings strings with the new separatore (“Adding the separator at the beginning is an ugly hack to tell new and old strings apart”). In validate_connections_names(), the settings string is split by the separator, yielding an empty string as the first element. This in turn is added to the invalid list.
With this fix, validate_connections_names() ignores the first element, looking only at the “real” connections.
Also, I’ve added a call to migrate_connection_name_separator() at the beginning of validate_connections_names(), because validate_connections_names() is called quite early in the startup process.
In
add_connection()
, there’s an ugly hack for marking settings strings with the new separatore (“Adding the separator at the beginning is an ugly hack to tell new and old strings apart”). Invalidate_connections_names()
, the settings string is split by the separator, yielding an empty string as the first element. This in turn is added to theinvalid
list.With this fix,
validate_connections_names()
ignores the first element, looking only at the “real” connections.Also, I’ve added a call to
migrate_connection_name_separator()
at the beginning ofvalidate_connections_names()
, becausevalidate_connections_names()
is called quite early in the startup process.Fixes #137