Skip to content

Commit 9af76e6

Browse files
committed
Updated to latest beta SDK. fixed profile clearing state issue.
1 parent 55f2a3a commit 9af76e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

GoXLR.Plugin/Commands/SetProfileCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public void UpdateSelectedProfile(Profile profile)
4141

4242
if (this._selected != prevProfile)
4343
{
44-
var profileName = profile.Name;
45-
this.ActionImageChanged($"profile|{profileName}");
44+
this.ActionImageChanged($"profile|{prevProfile.Name}");
45+
this.ActionImageChanged($"profile|{profile.Name}");
4646
}
4747
}
4848

@@ -74,7 +74,7 @@ protected override BitmapImage GetCommandImage(String actionParameter, PluginIma
7474
using (var bitmapBuilder = new BitmapBuilder(imageSize))
7575
{
7676
var background = ImageHelpers.GetProfileImage2(imageSize, profileName, isSelected);
77-
bitmapBuilder.SetBackgroundImage(new BitmapImage(background));
77+
bitmapBuilder.SetBackgroundImage(BitmapImage.FromArray(background));
7878

7979
return bitmapBuilder.ToImage();
8080
}

GoXLR.Plugin/Commands/SetRoutingCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected override BitmapImage GetCommandImage(String actionParameter, PluginIma
100100
using (var bitmapBuilder = new BitmapBuilder(imageSize))
101101
{
102102
var background = ImageHelpers.GetRoutingImage2(imageSize, routing, state);
103-
bitmapBuilder.SetBackgroundImage(new BitmapImage(background));
103+
bitmapBuilder.SetBackgroundImage(BitmapImage.FromArray(background));
104104

105105
return bitmapBuilder.ToImage();
106106
}

0 commit comments

Comments
 (0)