Skip to content

Commit

Permalink
Use label placeholder when editing multiple labels always
Browse files Browse the repository at this point in the history
  • Loading branch information
zorgiepoo committed May 6, 2024
1 parent 97e6e1d commit 0ccc9cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Bit Slicer/ZGEditLabelWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,11 @@ - (void)requestEditingLabelsFromVariables:(NSArray<ZGVariable *> *)variables att

if (variables.count > 1)
{
labelPlaceholderStringValue = @"Foo_%n";

if (firstVariableLabel.length == 0)
{
labelStringValue = @"";
labelPlaceholderStringValue = @"Foo_%n";
}
else
{
Expand All @@ -171,8 +172,6 @@ - (void)requestEditingLabelsFromVariables:(NSArray<ZGVariable *> *)variables att
{
labelStringValue = [NSString stringWithFormat:@"%@_$n", firstVariableLabel];
}

labelPlaceholderStringValue = @"";
}
}
else
Expand Down

0 comments on commit 0ccc9cb

Please sign in to comment.