LiquidGUI [1.2.0.0]
- Linux Support
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user