Terminal: fix cursor blinking

When the window was deactivated once, cursor wouldn't blink anymore on next activation. Fixes #16388

Change-Id: Id7042e078df2a5c5b397763cf544626efc5e589a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3258
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
JackBurton79 2020-09-20 08:40:18 +02:00 committed by Adrien Destugues
parent 8b2b301059
commit e2ee966fc0

View File

@ -977,7 +977,8 @@ void
TermView::_Activate()
{
fActive = true;
SwitchCursorBlinking(fCursorBlinking);
bool blink = PrefHandler::Default()->getBool(PREF_BLINK_CURSOR);
SwitchCursorBlinking(blink);
}