Fixed a crash on startup. Register the user defaults before using it.
This commit is contained in:
1 parent
e5c1b9f3f6
commit
faa1eb2642
3 files changed
+4
-3
No files matched your search
@@ -67,8 +67,8 @@ static void *SBQueueContex = &SBQueueContex;
|
||||
|
||||
- (id)init {
|
||||
if (self = [super initWithWindowNibName:@"Queue"]) {
|
||||
[SBQueuePreferences registerUserDefaults];
|
||||
_prefs = [[SBQueuePreferences alloc] init];
|
||||
[_prefs registerUserDefaults];
|
||||
_options = _prefs.options;
|
||||
|
||||
_queue = [[SBQueue alloc] initWithURL:_prefs.queueURL];
|
||||
|
||||
Reference in new issue
Block a user