summaryrefslogtreecommitdiffstats
path: root/macosx/HBDockTextField.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2020-04-11 12:19:17 +0200
committerDamiano Galassi <[email protected]>2020-04-11 12:19:17 +0200
commit21982a4e674d3382b13f30546f6e699bdfc5cafe (patch)
tree7da62e5317024d9e77d062678097a2eb2286c6fe /macosx/HBDockTextField.m
parentc3b2645cb09b48443bdd0e2670be6866d34b0dae (diff)
MacGui: enhance the queue to allow up to 4 simultaneous encodes. Add a preference to set the number of queue workers.
Diffstat (limited to 'macosx/HBDockTextField.m')
-rw-r--r--macosx/HBDockTextField.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/HBDockTextField.m b/macosx/HBDockTextField.m
index c26b25a94..d9091af6e 100644
--- a/macosx/HBDockTextField.m
+++ b/macosx/HBDockTextField.m
@@ -25,7 +25,6 @@
self = [super initWithFrame:frame];
if (self) {
[[self cell] setBezelStyle:NSBezelStyleRounded];
- _textToDisplay = @"";
_textAttributes = [self textAttributesWithFontSize:DOCK_TEXTFIELD_FONTSIZE];
_smallTextAttributes = [self textAttributesWithFontSize:DOCK_TEXTFIELD_FONTSIZE - 2];
[self changeGradientColors:[NSColor grayColor] endColor:[NSColor blackColor]];
@@ -67,7 +66,7 @@
[self.gradient drawInBezierPath:[NSBezierPath bezierPathWithRoundedRect:blackOutlineFrame xRadius:radius yRadius:radius] angle:90];
NSDictionary *attributes = self.textAttributes;
- NSString *budgetString = _textToDisplay;
+ NSString *budgetString = self.stringValue;
NSSize stringSize = [budgetString sizeWithAttributes:attributes];
if (size.width - 4 < stringSize.width)