Files
LiquidGUI/messagehandler.py
Dunestorm 7b32a214df LiquidGUI [1.0.1.2]
- Error handling and app termination for no compatible coolers.
- Minor code refactoring.
2023-08-18 21:37:59 +01:00

10 lines
420 B
Python

from PySide6.QtWidgets import QMessageBox
class MessageHandler():
def ShowNoDevicesFoundError(self):
msg = QMessageBox()
msg.setWindowTitle("LiquidGUI Error")
msg.setText("No suitable devices could be detected. Please ensure you have a cooler \
both compatible with LiquidCTL, and connected to the system.")
msg.setIcon(QMessageBox.Icon.Warning)
msg.exec()