MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / checkSwitchCooldown

Method checkSwitchCooldown

lib/general.cpp:803–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801}
802
803void SwitcherData::checkSwitchCooldown(bool &match)
804{
805 if (!match || !enableCooldown) {
806 return;
807 }
808
809 if (cooldown.DurationReached()) {
810 cooldown.Reset();
811 } else {
812 match = false;
813 vblog(LOG_INFO, "cooldown active - ignoring match");
814 }
815}
816
817static void populateStartupBehavior(QComboBox *cb)
818{

Callers

nothing calls this directly

Calls 2

DurationReachedMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected