mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +00:00
Customized a warning message for corsair
This commit is contained in:
parent
7f498cfeca
commit
3c931c3140
@ -30,6 +30,11 @@ namespace Artemis.KeyboardProviders.Corsair
|
||||
return false;
|
||||
throw;
|
||||
}
|
||||
catch (WrapperException)
|
||||
{
|
||||
CueSDK.Reinitialize();
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
|
||||
@ -30,6 +30,11 @@ namespace Artemis.KeyboardProviders.Corsair
|
||||
return false;
|
||||
throw;
|
||||
}
|
||||
catch (WrapperException)
|
||||
{
|
||||
CueSDK.Reinitialize();
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
|
||||
@ -115,11 +115,23 @@ namespace Artemis.Models
|
||||
// Disable everything if there's no active keyboard found
|
||||
if (!keyboardProvider.CanEnable())
|
||||
{
|
||||
string message;
|
||||
if (keyboardProvider.Name.ToLower().Contains("Corsair"))
|
||||
{
|
||||
message = "Couldn't connect to the " + keyboardProvider.Name + ".\n " +
|
||||
"Please check your cables and/or drivers (could be outdated) and that Corsair Utility Engine is running.\n\n " +
|
||||
"If needed, you can select a different keyboard in Artemis under settings.";
|
||||
}
|
||||
else
|
||||
{
|
||||
message = "Couldn't connect to the " + keyboardProvider.Name + ".\n " +
|
||||
"Please check your cables and/or drivers (could be outdated).\n\n " +
|
||||
"If needed, you can select a different keyboard in Artemis under settings.";
|
||||
}
|
||||
|
||||
ActiveKeyboard = null;
|
||||
MessageBox.Show(
|
||||
"Couldn't connect to the " + keyboardProvider.Name + ".\n " +
|
||||
"Please check your cables and/or drivers (could be outdated).\n\n " +
|
||||
"If needed, you can select a different keyboard in Artemis under settings",
|
||||
message,
|
||||
"Artemis (╯°□°)╯︵ ┻━┻",
|
||||
MessageBoxButtons.OK,
|
||||
MessageBoxIcon.Warning);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user