SystemMonitor: Try to keep focus in 'Stacks'

This commit is contained in:
Ben Wiederhake
2020-08-02 16:56:33 +02:00
committed by Andreas Kling
parent cd39eea7a9
commit 45632986a4

View File

@@ -60,5 +60,8 @@ void ProcessStacksWidget::refresh()
return;
}
m_stacks_editor->set_text(file->read_all());
auto new_text = file->read_all();
if (m_stacks_editor->text() != new_text) {
m_stacks_editor->set_text(new_text);
}
}