Skip to content

Commit 849e55d

Browse files
Long device names are unhandled #25
1 parent 16fb957 commit 849e55d

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

MainForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public void UpdateStatus(IDevice device)
193193
private void UpdateIcon(Icon icon, string tooltipText)
194194
{
195195
this.icon.Icon = icon;
196-
this.icon.Text = tooltipText;
196+
this.icon.Text = tooltipText.Substring(0, Math.Min(tooltipText.Length, 64));
197197
}
198198

199199
public void OnToggleTimerDoneAutoToggle(Object source, ElapsedEventArgs e)

MicMute.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<HintPath>packages\System.Threading.Tasks.Extensions.4.5.3\lib\portable-net45+win8+wp8+wpa81\System.Threading.Tasks.Extensions.dll</HintPath>
8585
</Reference>
8686
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
87-
<HintPath>packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll</HintPath>
87+
<HintPath>packages\System.ValueTuple.4.5.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
8888
</Reference>
8989
<Reference Include="System.Windows" />
9090
<Reference Include="System.Xml.Linq" />
@@ -165,7 +165,7 @@
165165
<Import Project="packages\Fody.6.0.0\build\Fody.targets" Condition="Exists('packages\Fody.6.0.0\build\Fody.targets')" />
166166
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
167167
<PropertyGroup>
168-
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
168+
<ErrorText>Данный проект ссылается на пакеты NuGet, отсутствующие на этом компьютере. Используйте восстановление пакетов NuGet, чтобы скачать их. Дополнительную информацию см. по адресу: http://go.microsoft.com/fwlink/?LinkID=322105. Отсутствует следующий файл: {0}.</ErrorText>
169169
</PropertyGroup>
170170
<Error Condition="!Exists('packages\Fody.6.0.0\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Fody.6.0.0\build\Fody.targets'))" />
171171
<Error Condition="!Exists('packages\Costura.Fody.4.1.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Costura.Fody.4.1.0\build\Costura.Fody.props'))" />

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
// You can specify all the values or you can default the Build and Revision Numbers
3434
// by using the '*' as shown below:
3535
// [assembly: AssemblyVersion("1.0.*")]
36-
[assembly: AssemblyVersion("0.0.7.0")]
37-
[assembly: AssemblyFileVersion("0.0.7.0")]
36+
[assembly: AssemblyVersion("0.0.8.0")]
37+
[assembly: AssemblyFileVersion("0.0.8.0")]
3838
[assembly: NeutralResourcesLanguage("en")]
3939

packages.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
<package id="System.Reactive.Core" version="3.1.1" targetFramework="net452" />
88
<package id="System.Reactive.Interfaces" version="3.1.1" targetFramework="net452" />
99
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net452" />
10-
<package id="System.Threading.Tasks.Extensions" version="4.5.3" targetFramework="net45" />
11-
<package id="System.ValueTuple" version="4.5.0" targetFramework="net472" requireReinstallation="true" />
10+
<package id="System.Threading.Tasks.Extensions" version="4.5.3" targetFramework="net452" />
11+
<package id="System.ValueTuple" version="4.5.0" targetFramework="net452" />
1212
</packages>

0 commit comments

Comments
 (0)