mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
refactor: Use composition for update time
The timer is not required by all classes and the deep inheritance makes it hard to see where it is actually used. Use composition instead.
This commit is contained in:
@@ -90,7 +90,8 @@ namespace swift::core::context
|
||||
Qt::QueuedConnection);
|
||||
|
||||
m_validator->start(QThread::LowestPriority);
|
||||
m_validator->startUpdating(60);
|
||||
using namespace std::chrono_literals;
|
||||
m_validator->startUpdating(60s);
|
||||
}
|
||||
|
||||
// For validation we need simulator directory and model directory
|
||||
|
||||
Reference in New Issue
Block a user