summaryrefslogtreecommitdiffstats
path: root/macosx/HBTitleSelectionController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-02-15 11:13:39 +0100
committerDamiano Galassi <[email protected]>2016-02-15 11:13:39 +0100
commitbced9cf423c41335de91922863940b60fb183b28 (patch)
tree9b3146ba1e33ff7563c968852d11853d9a51d49c /macosx/HBTitleSelectionController.m
parentb63b0bb81471ca6d8aa89fc3800126dfe91d84bc (diff)
MacGui: show what preset will be used in the 'Add titles to queue' panel. Use autolayout for the xib.
Diffstat (limited to 'macosx/HBTitleSelectionController.m')
-rw-r--r--macosx/HBTitleSelectionController.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/HBTitleSelectionController.m b/macosx/HBTitleSelectionController.m
index 7e9ea0af0..0865ff22d 100644
--- a/macosx/HBTitleSelectionController.m
+++ b/macosx/HBTitleSelectionController.m
@@ -39,17 +39,19 @@
@property (nonatomic, readwrite) NSArray<HBTitleSelection *> *titles;
@property (nonatomic, readonly, assign) id<HBTitleSelectionDelegate> delegate;
+@property (nonatomic, readonly) NSString *message;
@end
@implementation HBTitleSelectionController
-- (instancetype)initWithTitles:(NSArray *)titles delegate:(id<HBTitleSelectionDelegate>)delegate
+- (instancetype)initWithTitles:(NSArray<HBTitle *> *)titles presetName:(NSString *)presetName delegate:(id<HBTitleSelectionDelegate>)delegate;
{
self = [super initWithWindowNibName:@"HBTitleSelection"];
if (self)
{
_delegate = delegate;
+ _message = [NSString stringWithFormat:NSLocalizedString(@"Select the titles to add to the queue using the %@ preset:" , nil), presetName];
NSMutableArray<HBTitleSelection *> *array = [[NSMutableArray alloc] init];
for (HBTitle *title in titles)