terminal: Remove m_cursor_timer->restart() from tick_cursor()

Since the timer was created as a repeating timer, it is already restarted after the function.
This commit is contained in:
apio 2024-01-13 16:26:37 +01:00
parent cee677b1f7
commit d4d748e153
Signed by: asleepymoon
GPG Key ID: B8A7D06E42258954
2 changed files with 1 additions and 6 deletions

View File

@ -95,11 +95,7 @@ namespace os
m_stopped = true;
}
else
{
struct itimerspec itimer = { .it_interval = { .tv_sec = 0, .tv_nsec = 0 }, .it_value = m_interval };
timer_settime(m_timerid, 0, &itimer, nullptr);
}
restart();
}
}

View File

@ -122,7 +122,6 @@ void TerminalWidget::tick_cursor()
{
if (!m_cursor_enabled) return;
m_cursor_timer->restart();
m_cursor_activated = !m_cursor_activated;
if (m_cursor_activated) draw_cursor();