From e2178f6c865fa9ee4f948630a8ab3028a989b7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=AB=E7=84=9A=20=E5=AF=8C=E8=89=AF?= Date: Wed, 9 Nov 2022 16:55:17 +0800 Subject: [PATCH] Fix GUI log issues introduced by #1950 --- artiq/frontend/artiq_browser.py | 2 +- artiq/gui/log.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/frontend/artiq_browser.py b/artiq/frontend/artiq_browser.py index fc6d25fe2..204ac2382 100755 --- a/artiq/frontend/artiq_browser.py +++ b/artiq/frontend/artiq_browser.py @@ -153,7 +153,7 @@ def main(): browser = Browser(smgr, datasets_sub, args.browse_root, args.server, args.port) - widget_log_handler.callback = browser.log.append_message + widget_log_handler.callback = browser.log.model.append if os.name == "nt": # HACK: show the main window before creating applets. diff --git a/artiq/gui/log.py b/artiq/gui/log.py index 6a8ddecad..3fd05d80d 100644 --- a/artiq/gui/log.py +++ b/artiq/gui/log.py @@ -209,11 +209,11 @@ class LogDock(QDockWidgetCloseDetect): grid.addWidget(QtWidgets.QLabel("Minimum level: "), 0, 0) self.filter_level = QtWidgets.QComboBox() self.filter_level.addItems(["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]) - self.filter_level.setToolTip("Receive entries at or above this level") + self.filter_level.setToolTip("Filter entries at or above this level") grid.addWidget(self.filter_level, 0, 1) self.filter_freetext = QtWidgets.QLineEdit() self.filter_freetext.setPlaceholderText("freetext filter...") - self.filter_freetext.setToolTip("Receive entries containing this text") + self.filter_freetext.setToolTip("Filter entries containing this text") grid.addWidget(self.filter_freetext, 0, 2) scrollbottom = QtWidgets.QToolButton()