mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
Rename function
This commit is contained in:
parent
6d1c0dda91
commit
9855f0c64a
|
|
@ -166,7 +166,7 @@ void MacroDock::Highlight()
|
|||
return;
|
||||
}
|
||||
if (_lastHighlightCheckTime.time_since_epoch().count() != 0 &&
|
||||
macro->ExecutedSince(_lastHighlightCheckTime)) {
|
||||
macro->WasExecutedSince(_lastHighlightCheckTime)) {
|
||||
PulseWidget(this, Qt::green, QColor(0, 0, 0, 0), true);
|
||||
}
|
||||
_lastHighlightCheckTime = std::chrono::high_resolution_clock::now();
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ void MacroTreeItem::HighlightIfExecuted()
|
|||
}
|
||||
|
||||
if (_lastHighlightCheckTime.time_since_epoch().count() != 0 &&
|
||||
_macro->ExecutedSince(_lastHighlightCheckTime)) {
|
||||
_macro->WasExecutedSince(_lastHighlightCheckTime)) {
|
||||
PulseWidget(this, Qt::green, QColor(0, 0, 0, 0), true);
|
||||
}
|
||||
_lastHighlightCheckTime = std::chrono::high_resolution_clock::now();
|
||||
|
|
|
|||
|
|
@ -223,8 +223,8 @@ bool Macro::PerformActions(bool match, bool forceParallel, bool ignorePause)
|
|||
return ret;
|
||||
}
|
||||
|
||||
bool Macro::ExecutedSince(
|
||||
const std::chrono::high_resolution_clock::time_point &time)
|
||||
bool Macro::WasExecutedSince(
|
||||
const std::chrono::high_resolution_clock::time_point &time) const
|
||||
{
|
||||
return _lastExecutionTime > time;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,8 +95,8 @@ public:
|
|||
const QList<int> &GetElseActionSplitterPosition() const;
|
||||
void SetElseActionSplitterPosition(const QList<int>);
|
||||
bool HasValidSplitterPositions() const;
|
||||
bool
|
||||
ExecutedSince(const std::chrono::high_resolution_clock::time_point &);
|
||||
bool WasExecutedSince(
|
||||
const std::chrono::high_resolution_clock::time_point &) const;
|
||||
bool OnChangePreventedActionsRecently();
|
||||
void ResetUIHelpers();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user