mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 17:59:43 +02:00
fix: notification popup for megadb being black on windows
This commit is contained in:
@@ -19,6 +19,7 @@ def show_megadb_notification():
|
|||||||
)
|
)
|
||||||
notification_popup.setTextFormat(Qt.TextFormat.RichText)
|
notification_popup.setTextFormat(Qt.TextFormat.RichText)
|
||||||
notification_popup.setTextInteractionFlags(Qt.TextInteractionFlag.TextBrowserInteraction)
|
notification_popup.setTextInteractionFlags(Qt.TextInteractionFlag.TextBrowserInteraction)
|
||||||
|
if state.window_transparency is True:
|
||||||
notification_popup.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
notification_popup.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
||||||
button = notification_popup.addButton("Don't show again", QMessageBox.ButtonRole.AcceptRole)
|
button = notification_popup.addButton("Don't show again", QMessageBox.ButtonRole.AcceptRole)
|
||||||
button.clicked.connect(lambda: setattr(state, "show_megadb_notification", False))
|
button.clicked.connect(lambda: setattr(state, "show_megadb_notification", False))
|
||||||
|
|||||||
Reference in New Issue
Block a user