From 050ed12e433727633f15b88bc80b67373133231c Mon Sep 17 00:00:00 2001 From: Dunestorm Date: Sun, 20 Aug 2023 12:48:52 +0100 Subject: [PATCH] LiquidGUI [1.1.0.0] DEV - Corrected calling of static MessageHandler class. - Apply theme only on main app to make QMessageBox button text legible. --- main.pyw | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.pyw b/main.pyw index 1cbccd4..b79b24a 100644 --- a/main.pyw +++ b/main.pyw @@ -85,14 +85,14 @@ def main(): window.setWindowIcon(icon) window.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground) - qdarktheme.setup_theme("dark", custom_colors={"background": "#00000000"}) - win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.DARK) - # Show error and quit app if no devices are found if window.lctl.TestConnectionState() == True: - MessageHandler.ShowNoDevicesFoundError() + MessageHandler().ShowNoDevicesFoundError() sys.exit(1) else: + qdarktheme.setup_theme("dark", custom_colors={"background": "#00000000"}) + win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.DARK) + window.show() app.exec()