From 2881b35a8adc5faf0c16650755e6f4aa9bf48450 Mon Sep 17 00:00:00 2001 From: svatantrya Date: Sun, 10 May 2026 07:39:58 -0400 Subject: [PATCH] win w --- qt.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/qt.py b/qt.py index 0d0cbaa..ccdcd95 100644 --- a/qt.py +++ b/qt.py @@ -83,8 +83,7 @@ class Plugin(BalPlugin): title=_("Success"), ) return - top_level_window= window.top_level_window - w = BalWindow(self, top_level_window) + w = BalWindow(self, window) self.bal_windows[top_level_window.winId] = w for child in window.children(): if isinstance(child, QMenuBar): @@ -152,9 +151,8 @@ class Plugin(BalPlugin): def get_window(self, window): w = self.bal_windows.get(window.winId, None) if w is None: - win=w.top_level_window() - w = BalWindow(self, win) - self.bal_windows[win.winId] = w + w = BalWindow(self, window) + self.bal_windows[window.winId] = w return w def requires_settings(self):