LiquidGUI [1.1.0.0] DEV

- Corrected calling of static MessageHandler class.
- Apply theme only on main app to make QMessageBox button text legible.
This commit is contained in:
2023-08-20 12:48:52 +01:00
parent 5d4c09fc99
commit 050ed12e43
+4 -4
View File
@@ -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()