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:
parent
cee677b1f7
commit
d4d748e153
@ -95,11 +95,7 @@ namespace os
|
|||||||
m_stopped = true;
|
m_stopped = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
restart();
|
||||||
struct itimerspec itimer = { .it_interval = { .tv_sec = 0, .tv_nsec = 0 }, .it_value = m_interval };
|
|
||||||
|
|
||||||
timer_settime(m_timerid, 0, &itimer, nullptr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,7 +122,6 @@ void TerminalWidget::tick_cursor()
|
|||||||
{
|
{
|
||||||
if (!m_cursor_enabled) return;
|
if (!m_cursor_enabled) return;
|
||||||
|
|
||||||
m_cursor_timer->restart();
|
|
||||||
m_cursor_activated = !m_cursor_activated;
|
m_cursor_activated = !m_cursor_activated;
|
||||||
|
|
||||||
if (m_cursor_activated) draw_cursor();
|
if (m_cursor_activated) draw_cursor();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user