mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix crash when switching settings in the OBS stats condition
This commit is contained in:
parent
58144bf9a8
commit
87c18143a2
|
|
@ -53,7 +53,8 @@ const static std::map<MacroConditionStats::Condition, std::string>
|
|||
};
|
||||
|
||||
MacroConditionStats::MacroConditionStats(Macro *m)
|
||||
: MacroCondition(m), _cpu_info(os_cpu_usage_info_start())
|
||||
: MacroCondition(m),
|
||||
_cpu_info(os_cpu_usage_info_start())
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -490,8 +491,8 @@ void MacroConditionStatsEdit::StatsTypeChanged(int type)
|
|||
auto lock = LockContext();
|
||||
_entryData->_type =
|
||||
static_cast<MacroConditionStats::Type>(type);
|
||||
SetWidgetVisibility();
|
||||
}
|
||||
SetWidgetVisibility();
|
||||
_value->SetFixedValue(0);
|
||||
emit HeaderInfoChanged(
|
||||
QString::fromStdString(_entryData->GetShortDesc()));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user