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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user