fix: background not transparent anymore after opening megadb notification poup

This commit is contained in:
2026-04-10 18:06:10 +02:00
parent 4eedf620bf
commit 8d5b76e054
2 changed files with 0 additions and 4 deletions
-1
View File
@@ -17,7 +17,6 @@ def show_megadb_notification():
notification_popup.setTextFormat(Qt.TextFormat.RichText)
notification_popup.setTextInteractionFlags(Qt.TextInteractionFlag.TextBrowserInteraction)
notification_popup.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
notification_popup.setWindowModality(Qt.WindowModality.ApplicationModal)
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)
@@ -1,12 +1,9 @@
from PySide6.QtWidgets import QMessageBox
import qdarktheme
class NotificationPopup(QMessageBox):
def __init__(self, title, text, infotext=None, parent=None):
super().__init__(parent)
qdarktheme.setup_theme("auto")
self.setIcon(QMessageBox.Icon.Information)
self.setWindowTitle(title)
self.setText(text)