Closed Andersama closed 5 years ago
UI/window-basic-auto-config.cpp, line 511 at r1 (raw file):
This prevents caffeine auth from working when the browser is disabled. Removing the check entirely won't work because then it will show the connect button for twitch even when the browser is not available. I think the best approach would be to add a new entry to `Auth::Type` called, for example, `CustomAuth`. Then `is_auth_service` would check `cef` and change `Auth::Type::OAuth_StreamKey` into `Auth::Type::None` if `cef` is null
bool is_auth_service(Auth::Type type) {
if (!cef && type == Auth::Type::OAuth_StreamKey) {
return false;
}
return type != Auth::Type::None;
}
UI/window-basic-auto-config.cpp, line 480 at r1 (raw file):
static inline bool is_auth_service(const std::string &service) { return Auth::AuthType(service) != Auth::Type::None;
Auth::Type type = Auth::AuthType(service);
if (!cef && type == Auth::Type::OAuth_StreamKey) {
return Auth::Type::None;
}
return type != Auth::Type::None;
This change is