diff options
author | Damiano Galassi <[email protected]> | 2019-03-28 12:22:29 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-03-28 12:22:29 +0100 |
commit | 3641e770f58d88aadba8315d1053e01520c46936 (patch) | |
tree | 2ab207317763bcc6aa121620601e1fbf5a2bfdfb /macosx/HBController.m | |
parent | 99c35442c9c104e83b9b20624bfaf02fc5813f68 (diff) |
MacGui: improve localized progress number formats, use a monospace string to avoid numbers jumping around.
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r-- | macosx/HBController.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m index af4d88b45..dd69c6834 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -130,7 +130,7 @@ static void *HBControllerQueueCoreContext = &HBControllerQueueCoreContext; @property (nonatomic) BOOL visible; /// Queue progress info -@property (nonatomic, copy) NSString *progressInfo; +@property (nonatomic, copy) NSAttributedString *progressInfo; @property (nonatomic) double progress; @property (nonatomic, readwrite) NSColor *labelColor; @@ -177,7 +177,7 @@ static void *HBControllerQueueCoreContext = &HBControllerQueueCoreContext; _scanSpecificTitleIdx = 1; // Progress - _progressInfo = @""; + _progressInfo = [[NSAttributedString alloc] initWithString:@""]; // Check to see if the last destination has been set, use if so, if not, use Movies #ifdef __SANDBOX_ENABLED__ @@ -1001,11 +1001,11 @@ static void *HBControllerQueueCoreContext = &HBControllerQueueCoreContext; - (void)updateProgress { - fStatusField.stringValue = self.progressInfo; + fStatusField.attributedStringValue = self.progressInfo; fRipIndicator.doubleValue = self.progress; } -- (void)setQueueInfo:(NSString *)info progress:(double)progress hidden:(BOOL)hidden +- (void)setQueueInfo:(NSAttributedString *)info progress:(double)progress hidden:(BOOL)hidden { self.progressInfo = info; self.progress = progress; |