summaryrefslogtreecommitdiffstats
path: root/macosx/HBAppDelegate.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBAppDelegate.m')
-rw-r--r--macosx/HBAppDelegate.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/macosx/HBAppDelegate.m b/macosx/HBAppDelegate.m
index 32251f96f..6c21b1937 100644
--- a/macosx/HBAppDelegate.m
+++ b/macosx/HBAppDelegate.m
@@ -17,6 +17,7 @@
#import "HBController.h"
#define PRESET_FILE @"UserPresets.json"
+#define QUEUE_FILE @"Queue.hbqueue"
@interface HBAppDelegate ()
@@ -51,10 +52,11 @@
_outputPanel = [[HBOutputPanelController alloc] init];
// we init the HBPresetsManager
- NSURL *presetsURL = [[HBUtilities appSupportURL] URLByAppendingPathComponent:PRESET_FILE];
- _presetsManager = [[HBPresetsManager alloc] initWithURL:presetsURL];
+ NSURL *appSupportURL = [HBUtilities appSupportURL];
+ _presetsManager = [[HBPresetsManager alloc] initWithURL:[appSupportURL URLByAppendingPathComponent:PRESET_FILE]];
- _queueController = [[HBQueueController alloc] init];
+ // Queue
+ _queueController = [[HBQueueController alloc] initWithURL:[appSupportURL URLByAppendingPathComponent:QUEUE_FILE]];
_queueController.delegate = self;
_mainController = [[HBController alloc] initWithQueue:_queueController presetsManager:_presetsManager];