Skip to content

Commit 8a79447

Browse files
SECURE ENTRY: fixing bug where the timestamp would not clear if re-using for a regular text
1 parent e1e90d4 commit 8a79447

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/MyStreamDeckPlugin.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,12 @@ - (void)keyUpForAction:(NSString *)action withContext:(id)context withPayload:(N
365365
[_connectionManager setTitle:secureTitle withContext:context withTarget:kESDSDKTarget_HardwareAndSoftware];
366366
}
367367
else {
368+
// In case the button was used for a secure entry before, we must make sure we clear the title
369+
[_connectionManager setTitle:@"" withContext:context withTarget:kESDSDKTarget_HardwareAndSoftware];
370+
368371
// Defining everything as image (background + text)
369372
NSString *backgroundWithText64 = CreateBase64EncodedString(ComposeImage(@"postit-empty@2x.png", _tileText[ keyFromCoord(payload[@"coordinates"]) ], thisColor));
373+
370374
[_connectionManager setImage:backgroundWithText64 withContext:context withTarget:kESDSDKTarget_HardwareAndSoftware];
371375

372376
// THE FOLLOWING WOULD HAVE BEEN A LOT SIMPLER IF ONLY THE SDK SUPPORTED TITLE WRAPPING...

0 commit comments

Comments
 (0)