From 5bae8b008e657e2b667d3c807ec5fc34329f00f6 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Fri, 21 Jul 2023 20:54:59 -0400 Subject: [PATCH] `wifilogger`: Scroll down QTextBrowsers' scroll bars on refresh --- src/widgets/dialogs/wifi/wifilogger.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/dialogs/wifi/wifilogger.cpp b/src/widgets/dialogs/wifi/wifilogger.cpp index 431fcfe..fd57b5f 100644 --- a/src/widgets/dialogs/wifi/wifilogger.cpp +++ b/src/widgets/dialogs/wifi/wifilogger.cpp @@ -189,6 +189,8 @@ void wifilogger::updateLogs() { ui->fancyLogsText->setText(fancyLogsText); ui->allLogsText->setText(allLogsText); + ui->fancyLogsText->verticalScrollBar()->setValue(ui->fancyLogsText->verticalScrollBar()->maximum()); + ui->allLogsText->verticalScrollBar()->setValue(ui->allLogsText->verticalScrollBar()->maximum()); } }