mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 01:39:17 +01:00
Shorten tooltip char limit code
Also removes unnecessary comments
This commit is contained in:
parent
5d88d9f54a
commit
676ddea442
@ -1163,7 +1163,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
string temp = Program.rootHub.getShortDS4ControllerInfo(i);
|
||||
if (temp != Properties.Resources.NoneText)
|
||||
{
|
||||
notifyText[i + 1] = (i + 1) + ": " + temp; // Carefully stay under the 63 character limit.
|
||||
notifyText[i + 1] = (i + 1) + ": " + temp;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1179,7 +1179,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
string temp = Program.rootHub.getShortDS4ControllerInfo(index);
|
||||
if (temp != Properties.Resources.NoneText)
|
||||
{
|
||||
notifyText[index + 1] = (index + 1) + ": " + temp; // Carefully stay under the 63 character limit.
|
||||
notifyText[index + 1] = (index + 1) + ": " + temp;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1195,14 +1195,11 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
string temp = notifyText[i];
|
||||
if (!string.IsNullOrEmpty(temp))
|
||||
{
|
||||
tooltip += "\n" + notifyText[i]; // Carefully stay under the 63 character limit.
|
||||
tooltip += "\n" + notifyText[i];
|
||||
}
|
||||
}
|
||||
|
||||
if (tooltip.Length > 63)
|
||||
notifyIcon1.Text = tooltip.Substring(0, 63);
|
||||
else
|
||||
notifyIcon1.Text = tooltip;
|
||||
notifyIcon1.Text = tooltip.Length > 63 ? tooltip.Substring(0, 63) : tooltip; // Carefully stay under the 63 character limit.
|
||||
}
|
||||
|
||||
protected void DeviceSerialChanged(object sender, SerialChangeArgs args)
|
||||
|
Loading…
Reference in New Issue
Block a user