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

Function formatLastChangedText

lib/variables/variable-tab.cpp:155–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155static QString formatLastChangedText(Variable *variable)
156{
157 auto lastChanged = variable->GetSecondsSinceLastChange();
158 if (!lastChanged) {
159 return obs_module_text(
160 "AdvSceneSwitcher.variableTab.lastChanged.text.none");
161 }
162
163 return FormatRelativeTime(*lastChanged);
164}
165
166static QString formatLastChangedTooltip(Variable *variable)
167{

Callers 1

getCellLabelsFunction · 0.85

Calls 3

obs_module_textFunction · 0.85
FormatRelativeTimeFunction · 0.85

Tested by

no test coverage detected