This commit is contained in:
2026-05-10 07:39:58 -04:00
parent 7538d2d2c5
commit 2881b35a8a

8
qt.py
View File

@@ -83,8 +83,7 @@ class Plugin(BalPlugin):
title=_("Success"), title=_("Success"),
) )
return return
top_level_window= window.top_level_window w = BalWindow(self, window)
w = BalWindow(self, top_level_window)
self.bal_windows[top_level_window.winId] = w self.bal_windows[top_level_window.winId] = w
for child in window.children(): for child in window.children():
if isinstance(child, QMenuBar): if isinstance(child, QMenuBar):
@@ -152,9 +151,8 @@ class Plugin(BalPlugin):
def get_window(self, window): def get_window(self, window):
w = self.bal_windows.get(window.winId, None) w = self.bal_windows.get(window.winId, None)
if w is None: if w is None:
win=w.top_level_window() w = BalWindow(self, window)
w = BalWindow(self, win) self.bal_windows[window.winId] = w
self.bal_windows[win.winId] = w
return w return w
def requires_settings(self): def requires_settings(self):