debugger: Avoid incorrect update timer restart

This commit is contained in:
Eladash 2023-06-04 22:16:00 +03:00 committed by Ivan
parent e77c01d00a
commit ca56f0747e
1 changed files with 5 additions and 0 deletions

View File

@ -1334,6 +1334,11 @@ void debugger_frame::DoStep(bool step_over)
void debugger_frame::EnableUpdateTimer(bool enable) const
{
if (m_update->isActive() == enable)
{
return;
}
enable ? m_update->start(10) : m_update->stop();
}