Customized a warning message for corsair

This commit is contained in:
Logan Saso committed 2016-02-20 16:36:04 -08:00
1 parent 7f498cfeca
commit 3c931c3140
3 files changed
+25 -3

No files matched your search

@@ -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;
+15 -3
View File
@@ -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);