| 338 | } |
| 339 | |
| 340 | QString 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 | |
| 357 | std::deque<MacroScheduleEntry> &GetScheduleEntries() |
| 358 | { |
no test coverage detected