streamlink: trim custom paths (#4834)
this makes sure no spaces are accidentally left in the custom path Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -75,17 +75,16 @@ namespace {
|
||||
|
||||
QProcess *createStreamlinkProcess()
|
||||
{
|
||||
auto p = new QProcess;
|
||||
auto *p = new QProcess;
|
||||
|
||||
const QString path = [] {
|
||||
const QString path = []() -> QString {
|
||||
if (getSettings()->streamlinkUseCustomPath)
|
||||
{
|
||||
return getSettings()->streamlinkPath + "/" + getBinaryName();
|
||||
}
|
||||
else
|
||||
{
|
||||
return QString{getBinaryName()};
|
||||
const QString path = getSettings()->streamlinkPath;
|
||||
return path.trimmed() + "/" + getBinaryName();
|
||||
}
|
||||
|
||||
return {getBinaryName()};
|
||||
}();
|
||||
|
||||
if (Version::instance().isFlatpak())
|
||||
|
||||
Reference in New Issue
Block a user