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

Method HighlightOnChange

lib/macro/macro-tab.cpp:545–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545void AdvSceneSwitcher::HighlightOnChange() const
546{
547 if (!GetGlobalMacroSettings()._highlightActions &&
548 !GetGlobalMacroSettings()._highlightExecuted) {
549 return;
550 }
551
552 auto macro = GetSelectedMacro();
553 if (!macro) {
554 return;
555 }
556
557 if (macro->Paused()) {
558 return;
559 }
560
561 if (macro->ActionTriggerModePreventedActionsSince(
562 lastOnChangeHighlightCheckTime)) {
563 HighlightWidget(ui->actionTriggerMode, Qt::yellow,
564 Qt::transparent, true);
565 }
566
567 lastOnChangeHighlightCheckTime =
568 std::chrono::high_resolution_clock::now();
569}
570
571void AdvSceneSwitcher::on_macroSettings_clicked()
572{

Callers

nothing calls this directly

Calls 4

nowClass · 0.85
PausedMethod · 0.80
HighlightWidgetFunction · 0.50

Tested by

no test coverage detected