When selecting "Start Bitcoin Core on system login" in the settings, it will unselect itself after closing the dialog.

Tested with current master (e8ffec6) on Windows 7.

{
    LOCK(cs_args);
    for (const std::pair<std::string, std::string>& option : GetConfigOptions(stream)) {
        std::string strKey = std::string("-") + option.first;
        std::string strValue = option.second;
        if (InterpretNegatedOption(strKey, strValue)) {
            m_config_args[strKey].clear();
        } else {
            m_config_args[strKey].push_back(strValue);
        }
        
        if (!IsArgKnown(strKey) && !ignore_invalid_keys) {
            error = strprintf("Invalid configuration value %s", option.first.c_str());
            return false;
        }
    }
    return true;
}
bool ArgsManager::ReadConfigFiles(std::string& error, bool ignore_invalid_keys)