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

Method GetNextTriggerString

plugins/schedule/macro-schedule.cpp:340–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340QString MacroScheduleEntry::GetNextTriggerString() const
341{
342 if (!enabled) {
343 return obs_module_text(
344 "AdvSceneSwitcher.macroScheduleTab.status.disabled");
345 }
346 if (IsExpired()) {
347 return obs_module_text(
348 "AdvSceneSwitcher.macroScheduleTab.status.expired");
349 }
350 const QDateTime next = NextTriggerTime();
351 if (!next.isValid()) {
352 return QString("-");
353 }
354 return next.toString("yyyy-MM-dd HH:mm");
355}
356
357std::deque<MacroScheduleEntry> &GetScheduleEntries()
358{

Callers 1

PopulateTableMethod · 0.80

Calls 2

obs_module_textFunction · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected