fix device index floating

This commit is contained in:
michalcourson
2026-03-28 07:11:31 -04:00
parent d3d5270889
commit 1106c82eab
6 changed files with 239 additions and 18 deletions

View File

@@ -265,6 +265,7 @@ namespace ClipTrimDotNet.Client
public async void SaveClip()
{
if (socket is null) return;
CheckPort();
await socket.EmitAsync("record_clip", new List<object>() { });
}
@@ -272,7 +273,7 @@ namespace ClipTrimDotNet.Client
{
if (socket is null) return;
//Logger.Instance.LogMessage(TracingLevel.INFO, $"Checking port {socket}");
if (currentHostname != HostName)
if (currentHostname != HostName || !socket.Connected)
{
//Logger.Instance.LogMessage(TracingLevel.INFO, $"port {socket}");
if (socket.Connected)

View File

@@ -6,8 +6,6 @@
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<PreBuildEvent>npm run stop</PreBuildEvent>
<PostBuildEvent>npm run start</PostBuildEvent>
<AssemblyTitle>ClipTrimDotNet</AssemblyTitle>
<Product>ClipTrimDotNet</Product>
<Copyright>Copyright © 2020</Copyright>
@@ -18,9 +16,10 @@
<OutputPath>bin\Debug\com.michal-courson.cliptrim.sdPlugin\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\ClipTrimDotNet.sdPlugin\</OutputPath>
<OutputPath>bin\Release\com.michal-courson.cliptrim.sdPlugin\</OutputPath>
</PropertyGroup>
<ItemGroup>
<None Remove="ClipTrim.streamDeckProfile" />
<None Remove="Images\app_icon.png" />
<None Remove="Images\back.png" />
<None Remove="Images\category_icon.png" />
@@ -71,6 +70,9 @@
</ItemGroup>
<ItemGroup>
<Content Include="!!README!!.txt" />
<Content Include="ClipTrim.streamDeckProfile">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\app_icon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>