Qt: Fix duplicate ansi highlighter creation

It is created in the slot when the action is toggled in LoadSettings
This commit is contained in:
Megamouse 2026-02-08 18:04:10 +01:00
parent 6a07c3f46d
commit 4c234dc744

View file

@ -163,11 +163,6 @@ log_frame::log_frame(std::shared_ptr<gui_settings> _gui_settings, QWidget* paren
CreateAndConnectActions();
LoadSettings();
if (m_ansi_tty)
{
m_tty_ansi_highlighter = new AnsiHighlighter(m_tty->document());
}
m_timer = new QTimer(this);
connect(m_timer, &QTimer::timeout, this, &log_frame::UpdateUI);
}