From 97150439366581619e63d5841c0568ddfae129d2 Mon Sep 17 00:00:00 2001 From: KeksNino Date: Fri, 10 Apr 2026 19:02:51 +0200 Subject: [PATCH] fix: notification popup for megadb being black on windows --- src/data/hosts/megadb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/hosts/megadb.py b/src/data/hosts/megadb.py index c1b08ac..e73989d 100644 --- a/src/data/hosts/megadb.py +++ b/src/data/hosts/megadb.py @@ -19,7 +19,8 @@ def show_megadb_notification(): ) notification_popup.setTextFormat(Qt.TextFormat.RichText) notification_popup.setTextInteractionFlags(Qt.TextInteractionFlag.TextBrowserInteraction) - notification_popup.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground) + if state.window_transparency is True: + notification_popup.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground) button = notification_popup.addButton("Don't show again", QMessageBox.ButtonRole.AcceptRole) button.clicked.connect(lambda: setattr(state, "show_megadb_notification", False)) save_settings(show_megadb_notification=False)