Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/StreamDeckLib/ConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public async Task SetTitleAsync(string context, string newTitle)
await _proxy.SendStreamDeckEvent(args);
}

public async Task SetImageAsync(string context, string imageLocation)
public async Task SetImageAsync(string context, string imageLocation, int? state = null)
{

Debug.WriteLine($"Getting Image from {new FileInfo(imageLocation).FullName} on disk");
Expand All @@ -253,7 +253,8 @@ public async Task SetImageAsync(string context, string imageLocation)
payload = new SetImageArgs.Payload
{
TargetType = SetTitleArgs.TargetType.HardwareAndSoftware,
image = $"data:image/{new FileInfo(imageLocation).Extension.ToLowerInvariant().Substring(1)};base64, {imgString}"
image = $"data:image/{new FileInfo(imageLocation).Extension.ToLowerInvariant().Substring(1)};base64, {imgString}",
state = state
}
};

Expand Down
2 changes: 2 additions & 0 deletions src/StreamDeckLib/Messages/SetImageArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public class Payload
[JsonIgnore]
public TargetType TargetType { get; set; }

public int? state { get; set; }

}

}
Expand Down