Skip to content

Commit

Permalink
Merge pull request #31 from dwettstein/fix/long-device-name
Browse files Browse the repository at this point in the history
fix: unhandled ex with long device names
  • Loading branch information
Anc813 authored Jan 28, 2022
2 parents b614d74 + 0fb92de commit 34cbac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void UpdateStatus(IDevice device)
private void UpdateIcon(Icon icon, string tooltipText)
{
this.icon.Icon = icon;
this.icon.Text = tooltipText.Substring(0, Math.Min(tooltipText.Length, 64));
this.icon.Text = tooltipText.Substring(0, Math.Min(tooltipText.Length, 63));
}

public async void ToggleMicStatus()
Expand Down

0 comments on commit 34cbac2

Please sign in to comment.