diff --git a/DetectionManager.cpp b/DetectionManager.cpp index e7b2777e6..1b20a470d 100644 --- a/DetectionManager.cpp +++ b/DetectionManager.cpp @@ -45,6 +45,7 @@ const char* DETECTIONMANAGER = "DetectionManager"; /*---------------------------------------------------------*\ | Warning Dialog Strings | \*---------------------------------------------------------*/ +#ifdef _WIN32 static const char* I2C_ERR_WIN = QT_TRANSLATE_NOOP("DetectionManager", "

Warning:

" "

One or more I2C/SMBus interfaces failed to initialize.

" @@ -52,6 +53,8 @@ static const char* I2C_ERR_WIN = QT_TRANSLATE_NOOP("DetectionManager", "

On Windows, this is usually caused by a failure to load the PawnIO driver.

" "

For OpenRGB to access these devices, you must install PawnIO from https://pawnio.eu and run OpenRGB as administrator or as a system service.

" "

If you are not using any of the devices listed above, you can safely ignore this message.

"); +#endif +#ifdef __linux__ static const char* I2C_ERR_LINUX = QT_TRANSLATE_NOOP("DetectionManager", "

Warning:

" "

One or more I2C/SMBus interfaces failed to initialize.

" @@ -60,7 +63,9 @@ static const char* I2C_ERR_LINUX = QT_TRANSLATE_NOOP("DetectionManager", "

For OpenRGB to access these devices, you must load the i2c-dev module along with the correct I2C driver module for your motherboard. " "This is usually i2c-piix4 for AMD systems and i2c-i801 for Intel systems.

" "

If you are not using any of the devices listed above, you can safely ignore this message.

"); +#endif +#ifdef __linux__ static const char* UDEV_MISSING = QT_TRANSLATE_NOOP("DetectionManager", "

Warning:

" "

The OpenRGB udev rules are not installed.

" @@ -72,6 +77,7 @@ static const char* UDEV_MUTLI = QT_TRANSLATE_NOOP("DetectionManager", "

Multiple OpenRGB udev rules are installed.

" "

The udev rules file 60-openrgb.rules is installed in both /etc/udev/rules.d and /usr/lib/udev/rules.d.

" "

Multiple udev rules files can conflict, it is recommended to remove one of them.

"); +#endif /*---------------------------------------------------------*\ | Default hidapi wrappter that just uses default hidapi |