LiquidGUI [1.2.0.0]

- Linux Support
This commit is contained in:
2024-12-26 12:34:07 +00:00
parent 03fca21675
commit 3cc53d0c81
+5 -5
View File
@@ -132,11 +132,6 @@ def main():
window = MainWindow(LiquidCTL_Helper()) window = MainWindow(LiquidCTL_Helper())
window.setWindowIcon(icon) window.setWindowIcon(icon)
# Show error and quit app if no devices are found
if window.lctl.TestConnectionState():
MessageHandler().ShowNoDevicesFoundError()
sys.exit(1)
else:
if globals.platform == "Windows": if globals.platform == "Windows":
window.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground) window.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
if darkdetect.isDark(): if darkdetect.isDark():
@@ -144,6 +139,11 @@ def main():
elif darkdetect.isLight(): elif darkdetect.isLight():
win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.LIGHT) win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.LIGHT)
# Show error and quit app if no devices are found
if window.lctl.TestConnectionState():
MessageHandler().ShowNoDevicesFoundError()
sys.exit(1)
else:
window.show() window.show()
app.exec() app.exec()