From 82e9fb0c443b279aeba7d1210a9d742029e4e0d5 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Wed, 29 Nov 2023 08:06:56 +0100 Subject: [PATCH] Fix minor optimisation issue --- novelwriter/gui/statusbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/novelwriter/gui/statusbar.py b/novelwriter/gui/statusbar.py index 916a454c..070f93ee 100644 --- a/novelwriter/gui/statusbar.py +++ b/novelwriter/gui/statusbar.py @@ -256,7 +256,7 @@ class GuiMainStatus(QStatusBar): stamp = datetime.now().strftime("%H:%M:%S") self.showMessage(( f"Debug [{stamp}]" - f" \u2013 Widgets: {len(qApp.allWidgets())}" + f" \u2013 Widgets: {len(widgets)}" f" \u2013 {self._traceMallocRef} Memory: {mem[0]:n}" f" \u2013 Peak: {mem[1]:n}" ), 6000)