- Error handling and app termination for no compatible coolers. - Minor code refactoring.
10 lines
420 B
Python
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() |