mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 00:56:00 -05:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4a1593dc9 |
@@ -15,6 +15,9 @@ bool MacroConditionProfile::_registered = MacroConditionFactory::Register(
|
|||||||
bool MacroConditionProfile::CheckCondition()
|
bool MacroConditionProfile::CheckCondition()
|
||||||
{
|
{
|
||||||
auto currentProfile = obs_frontend_get_current_profile();
|
auto currentProfile = obs_frontend_get_current_profile();
|
||||||
|
if (!currentProfile) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
const bool match = _profile == currentProfile;
|
const bool match = _profile == currentProfile;
|
||||||
bfree(currentProfile);
|
bfree(currentProfile);
|
||||||
return match;
|
return match;
|
||||||
|
|||||||
Reference in New Issue
Block a user