Fix crash that could occur when the user changed the "Custom stream player URI Scheme" setting if the user had closed down and splits in the application runtime (#2592)

This commit is contained in:
pajlada 2021-04-17 11:55:44 +02:00 committed by GitHub
parent 032faabcb0
commit 8641435142
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View file

@ -2,6 +2,8 @@
## Unversioned
- Bugfix: Fix crash that could occur when the user changed the "Custom stream player URI Scheme" setting if the user had closed down and splits in the application runtime. (#2592)
## 2.3.0
- Major: Added clip creation support. You can create clips with `/clip` command, `Alt+X` keybind or `Create a clip` option in split header's context menu. This requires a new authentication scope so re-authentication will be required to use it. (#2271, #2377, #2528)

View file

@ -314,12 +314,14 @@ void SplitHeader::initializeLayout()
}
});
getSettings()->customURIScheme.connect([this] {
if (const auto drop = this->dropdownButton_)
{
drop->setMenu(this->createMainMenu());
}
});
getSettings()->customURIScheme.connect(
[this] {
if (const auto drop = this->dropdownButton_)
{
drop->setMenu(this->createMainMenu());
}
},
this->managedConnections_);
layout->setMargin(0);
layout->setSpacing(0);